A web application for scheduling meetings and general polling.
Python HTML CSS JavaScript CoffeeScript Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bitpoll fix problems view: is_is_authenticated is a property and not a functi… Apr 16, 2018
locale
.gitignore show the courser pointer in the vote view on the selectable items (fixes Nov 13, 2017
.gitmodules
LICENSE Add LICENSE May 15, 2017
README.md fix errors in settings.sample.py Nov 16, 2017
manage.py Fix settings and urlconf after rename Jul 12, 2017
requirements-production.in pin all requirements via pip-tools, add docu in README Nov 16, 2017
requirements-production.txt update to django 2.0, update dependencies Apr 6, 2018
requirements.in update to django 2.0, update dependencies Apr 6, 2018
requirements.txt

README.md

Bitpoll

Bitpoll is a software to conduct polls about Dates, Times or general Questions.

This is a new version of the Dudel from opatut (https://github.com/opatut/dudel) used on <mafiasi.de>, rewritten using the Django framework as a backend.

Install

Get the code:

git clone https://github.com/fsinfuhh/Bitpoll

Generate a Python virtualenv and install dependencies:

virtualenv -p $(which python3) .pyenv
source .pyenv/bin/activate
pip install -r requirements.txt

Copy bitpoll/settings_local.sample.py to bitpoll/settings_local.py and customize the local settings.

Initialise Database:

./manage.py migrate

Run Testserver:

./manage.py runserver

Production

In production Senty is used for error reporting. django-auth-ldap is used vor login via ldap uwsgi to serve the app

Install Dependencies for Production:

sudo apt install g++ make python3-psycopg2 python3-ldap3 gettext gcc python3-dev libldap2-dev libsasl2-dev

Install Python Dependencies

pip install -r requirements-production.txt

Configure examples are in settings_local.py

our used uwsgi config can be found at https://github.com/fsinfuhh/mafiasi-rkt/blob/master/bitpoll/uwsgi-bitpoll.ini

For Production systems it is nessesarry to run

./manage.py compilemessages
./manage.py collectstatic

Management of Dependencies

We use pip-tools to manage the dependencies. After modification or the requirements*.in files or for updates of packages run

pip-compile --upgrade --output-file requirements.txt requirements.in
pip-compile --upgrade --output-file requirements-production.txt  requirements-production.in requirements.in

to sync your enviroment with the requirements.tyt just run

pip-sync

this will install/deinstall dependencies so that the virtualenv is matching the requirements file