This is the source code (but not the content) for http://cppquiz.org
Both this code and the contents of the site are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License: http://creativecommons.org/licenses/by-sa/4.0/
Setting up the environment
Note: CppQuiz is still running on Python 2.7
- Clone this repository
- Install Django 1.9 (Yes, we probably should use virtualenv)
cp cppquiz/local_settings_example.py cppquiz/local_settings.py, then edit at least
- Read the Django docs
- `python manage.py migrate'
python manage.py createsuperuser
- `python manage.py runserver'
python manage.py create_questions 10(Or whatever number, just so you have some dummy questions)
sudo pip install mock
sudo pip install sixIf you're on OS X and get an error about importing
wraps, see http://stackoverflow.com/questions/31417964/importerror-cannot-import-name-wraps
The system tests are currently not maintained. If you want to have a go, you need at least
sudo pip install lettuce and
sudo pip install splinter. Then try to get
./run_lettuce to work.
sudo pip install fabric
- Bump the version in
templates.base.html(this should be scripted)