mirror of
https://github.com/django/django.git
synced 2025-08-09 21:38:18 +00:00
[1.9.x] Added a missing import in tutorial 3.
Backport of e8c34bb832
from master
This commit is contained in:
parent
237f72c9fe
commit
d86870cb6c
1 changed files with 2 additions and 0 deletions
|
@ -450,6 +450,8 @@ file, go ahead and add an ``app_name`` to set the application namespace:
|
|||
|
||||
from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
app_name = 'polls'
|
||||
urlpatterns = [
|
||||
url(r'^$', views.index, name='index'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue