Website for MBHS's Political Statistics 2018 House Model
Prequisites: Python 3+, pipenv
, and sass
(for static precompilation)
- Clone this repo:
https://github.com/polistat/PoliStat.git
. - Change directory to
polistat
:cd polistat
. - Create new virtual environment:
pipenv install --dev
. - Run
pipenv shell
to enter the new environment. - Make migrations and apply:
python manage.py makemigrations figures
python manage.py migrate
- Load testing data:
python manage.py loaddata fixtures/states
python manage.py loaddata fixtures/districts
- Run server:
python manage.py runserver
. - Visit in browser:
localhost:8000
. - And voila!
Django comes shipped with an authentication app, which we use for all our admin
needs. Just run python manage.py createsuperuser
, follow the instructions, run the server,
and visit localhost:8000/admin
to log in.
We welcome any outside contributions! Just make a fork and submit a pull request.