Skip to content

Instantly share code, notes, and snippets.

@inglesp
Created February 7, 2014 16:39
Show Gist options
  • Save inglesp/8866459 to your computer and use it in GitHub Desktop.
Save inglesp/8866459 to your computer and use it in GitHub Desktop.
Django tutorial exercises
Here are some ideas for ways to extend the polls app built during the Django tutorial at https://docs.djangoproject.com/en/1.6/intro/tutorial01/.
# On the index page
* show the date that each poll was published
* show the total number of votes for each poll
* show the most popular response(s) for each poll
* only show the polls whose `pub_date` field is in the past
# On the detail page
* add a link to see the results directly, without voting
* order the options alphabetically
* add an "other" option with a text field to allow voters to create new choices
# On the results page
* order the options with the most popular at the top
* display some kind of ascii-art graph of the results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment