Skip to content
Snippets Groups Projects

Wahlfang

StuStaNet Online Wahl-Tool

Setup

$ pip3 install -r requirements.txt

Generating Test Data

Create an election:

python3 manage.py createelection --title "Hausadminwahl SS20 im Testhaus"

Create a voter:

python3 manage.py createvoter --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:

$ python3 manage.py migrate

Development References