Wahlfang - a simple, feature complete online voting platform.
Project description
Wahlfang
A self-hostable online voting tool developed to include all the features you would need to hold any online election you can dream of
Developed by StuStaNet Wahlfang is a small-ish Django project which aims at being an easy to use solution for online elections. From simple one-time votes about where to grab a coffee to large and long meetings with multiple different votes and elections - Wahlfang does it all.
If you would like a new feature or have a bug to report please open an issue.
Getting Started
To setup your own wahlfang instance for productive use see deploying.
Metrics
In the default configuration wahlfang exports some internal application statistics as Prometheus
metrics at the endpoint /metrics
. This behaviour can be turned off by settings EXPORT_PROMETHEUS_METRICS = False
in the application settings.
We use the django-prometheus project to export our exports.
Contributing
To just get the current version up and running simply
$ git clone https://gitlab.stusta.de/stustanet/wahlfang.git
$ cd wahlfang
$ pip3 install -r requirements.txt
$ pip3 install -r requirements_dev.txt
$ export WAHLFANG_DEBUG=True
$ export PYTHONPATH="$PYTHONPATH:."
$ python3 wahlfang/manage.py migrate
$ python3 wahlfang/manage.py runserver localhost:8000
Creating a local election management user:
$ python3 wahlfang/manage.py create_admin
Login to the management interface running at http://127.0.0.1:8000/management/.
Run the linting and test suite
$ make lint
$ make test
If some model changed, you might have to make and/or apply migrations again:
$ python3 wahlfang/manage.py makemigrations
$ python3 wahlfang/manage.py migrate
Don't forget to add the new migration file to git. If the CI pipeline fails this is most likely the reason for it.
Development References
- Django 3: https://docs.djangoproject.com/en/3.2/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.