Mezzanine-style implementation of the Django polls (from the tutorial).
-
Clone the repo
-
Check out the initial commit
-
Install the requirements:
pip install -r requirements.txt
(this will install Mezzanine and all Python dependencies). -
Inside
polldemo/
copy and renamelocal_settings.py.sample
tolocal_settings.py
(further instructions in the file). -
Initialize the database:
python manage.py createdb
. Take note of the username and password you use (those will be the admin credentials). You can answer all other prompts with the defaults. -
Start the Django development server
python manage.py runserver
. Visit http://localhost:8000/polls to view the site. The admin is at http://localhost:8000/admin. -
Replay the commits as you walk through the slides. You can re-type everything or just look at the diffs, they are very small and clear. Remember to run migrations!