Kaydet (Commit) 8a5a002f authored tarafından Tim Graham's avatar Tim Graham

Made a couple tutorial corrections for Django 1.9.

üst 1515b6a8
...@@ -227,6 +227,7 @@ That'll create a directory :file:`polls`, which is laid out like this:: ...@@ -227,6 +227,7 @@ That'll create a directory :file:`polls`, which is laid out like this::
polls/ polls/
__init__.py __init__.py
admin.py admin.py
apps.py
migrations/ migrations/
__init__.py __init__.py
models.py models.py
...@@ -261,6 +262,7 @@ Your app directory should now look like:: ...@@ -261,6 +262,7 @@ Your app directory should now look like::
polls/ polls/
__init__.py __init__.py
admin.py admin.py
apps.py
migrations/ migrations/
__init__.py __init__.py
models.py models.py
...@@ -282,8 +284,8 @@ In the ``polls/urls.py`` file include the following code: ...@@ -282,8 +284,8 @@ In the ``polls/urls.py`` file include the following code:
] ]
The next step is to point the root URLconf at the ``polls.urls`` module. In The next step is to point the root URLconf at the ``polls.urls`` module. In
``mysite/urls.py`` insert an :func:`~django.conf.urls.include`, leaving you ``mysite/urls.py``, add an import for ``django.conf.urls.include`` and insert
with: an :func:`~django.conf.urls.include` in the ``urlpatterns`` list, so you have:
.. snippet:: .. snippet::
:filename: mysite/urls.py :filename: mysite/urls.py
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment