django-admin startproject mysite
python manage.py startapp polls
Question and Choice models
add polls to installed apps
python manage.py makemigrations polls
adding a __str__() method to both Question and Choice
was_published_recently()
Make the poll app modifiable in the admin
Customize the poll admin form
Split the form up into fieldsets
html collapse class
register Choice with the admin
ChoiceInline
TabularInline (instead of StackedInline)
QuestionAdmin list_display

By default, Django displays the str() of each object. But sometimes it’d
be more helpful if we could display individual fields. To do that, use
the list_display admin option, which is a tuple of field names to
display, as columns, on the change list page for the object
list_display was_published_recently
allow sorting by was_published_recently
list_filter = ['pub_date']
search_fields = ['question_text']
TEMPLATE_DIRS