Added a missing import in tutorial 3.
This commit is contained in:
parent
3432f5d659
commit
e8c34bb832
|
@ -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…
Reference in New Issue