Wahlfang
StuStaNet Online Wahl-Tool
Setup
$ cd Wahlfang
$ pip3 install -r requirements.txt
$ python3 manage.py migrate
Generating Test Data
Create an election:
$ python3 manage.py create_election --title "Hausadminwahl SS20 im Testhaus" --max-votes-yes 2
Create a voter:
$ python3 manage.py create_voter --election_id 1 --voter_id 1337
You can login with the printed access code.
Admin Access (optional)
Creating a superuser (for testing):
$ python3 manage.py createsuperuser
The admin interface is accessible at http://127.0.0.1:8000/admin/
Run Development Server
Starting the server:
$ python3 manage.py runserver
If some model changed, you might have to apply migrations again:
$ python3 manage.py migrate
Development References
- Django 3: https://docs.djangoproject.com/en/3.0/