mirror of
https://github.com/django/django.git
synced 2025-09-19 08:49:57 +00:00
Added a missing import in tutorial 3.
This commit is contained in:
parent
3432f5d659
commit
e8c34bb832
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 django.conf.urls import url
|
||||||
|
|
||||||
|
from . import views
|
||||||
|
|
||||||
app_name = 'polls'
|
app_name = 'polls'
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', views.index, name='index'),
|
url(r'^$', views.index, name='index'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue