mirror of
https://github.com/django/django.git
synced 2025-07-21 01:59:26 +00:00
[1.9.x] Fixed #25934 -- Added missing app_name in tutorial 4's urls.py.
Backport of 4cd24bb67c8d82630817e97ab9ba444ca955a94d from master
This commit is contained in:
parent
3c69d52377
commit
45ea00742b
@ -241,6 +241,7 @@ First, open the ``polls/urls.py`` URLconf and change it like so:
|
|||||||
|
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
|
app_name = 'polls'
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||||
url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'),
|
url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user