Django app for source-code related quizzes
- clone the repo
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py loaddata codequiz-server/apps/quiz/fixtures/real_quiz_data.json
python manage.py runserver
- open http://localhost:8000/
- go to http://localhost:8000/admin/ to create, delete or edit tasks
The following instructions are taylored towards uberspace
- copy
<BASEDIR>/deployment/config-exampl.ini
to<BASEDIR>/config.ini
- change that file (insert your connection data etc.)
- review
deployment/deploy.py
to understand what happens - run
pip install -r deployment/deployment_requirements.txt
- run
python deployment/deploy.py
from<BASEDIR>/
- to just update the code (with no changes on data or static files):
py3 deployment/deploy.py -odsxq remote