Opened 9 years ago
Last modified 9 years ago
#25934 closed Bug
Lacking of app_name = 'polls' for "writing your first Django app" part 4 -Amend URLconf document — at Initial Version
Reported by: | phanminhnhat | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In "writing your first Django app" part 4 -Amend URLconf document , it is lacking of the one line of code about app name for urls.py file: (https://docs.djangoproject.com/en/1.9/intro/tutorial04/)
app_name = 'polls'
It will generate issue:
NoReverseMatch at /polls/
u'polls' is not a registered namespace
Note:
See TracTickets
for help on using tickets.