#29231: Documentation Regression for Tutorial 03
-----------------------------------------+------------------------
Reporter: Paul | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 2.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-----------------------------------------+------------------------
It looks like this issue may have been fixed in the past, but
documentation version 1.7 onward do not mention this. It is also not
mentioned in Tutorial 04.
The tutorial is missing a reference to adding the namespace to the
mysite/urls.py as follows:
{{{
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
- path('polls/', include('polls.urls')),
+ path('polls/', include('polls.urls', namespace="polls")),
path('admin/', admin.site.urls),
]
}}}
Without this change, it gives an NoReverseMatch error, "polls" is not a
registered namespace
Could the tutorial be updated to include this change?
[[https://docs.djangoproject.com/en/2.0/intro/tutorial03/#namespacing-url-
names]]
--
Ticket URL: <https://code.djangoproject.com/ticket/29231>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/057.52f01afc8fac1dfd710b0ec6f89ddf9c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.