浏览代码

Added a missing import in tutorial 3.

Mahendra Yadav 9 年之前
父节点
当前提交
e8c34bb832
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      docs/intro/tutorial03.txt

+ 2 - 0
docs/intro/tutorial03.txt

@@ -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'),