Source for the website (not the questions)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
cppquiz Show optional explanation for retracting a question Sep 17, 2018
hooks Add a hook to require referencing a github issue. Fixes #34 Dec 3, 2013
resources Add template for maintenance page Sep 10, 2018
templates Use valid html Sep 17, 2018
.gitignore Updated .gitignore Jun 5, 2014 Add code of conduct May 12, 2018 Use correct directory for prod site Feb 6, 2016 More modern project structure (Django 1.4) May 27, 2013
run_lettuce Add simple fixed quizes. Jun 30, 2013 Use lettuce and splinter for BDD. Just a simple test to see that it w… Jun 3, 2013

This is the source code (but not the content) for

Both this code and the contents of the site are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License:


Setting up the environment

Note: CppQuiz is still running on Python 2.7

  • Clone this repository
  • (We recommend using Virtualenv)
  • pip install -r requirements.txt
  • cp cppquiz/ cppquiz/, then edit at least /path/to/your/code
  • python migrate
  • python createsuperuser
  • python create_questions 10 (Or whatever number, just so you have some dummy questions)
  • python runserver


Unit tests

  • ./ test

System tests

The system tests are currently not maintained. If you want to have a go, you need at least pip install lettuce and pip install splinter. Then try to get ./run_lettuce to work.


  • pip install fabric
  • Bump the version in templates.base.html (this should be scripted)
  • fab beta
  • Check
  • fab production