diff options
| author | Tim Graham <timograham@gmail.com> | 2015-10-01 15:17:39 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-01 15:19:10 -0400 |
| commit | 1084b421f1b2db1e3a0bcc04ca86ecf4823c9c5b (patch) | |
| tree | 16af8d682e5cff92b3788736861f4222a7eaa3f3 /docs | |
| parent | 05968192f74d1bd36c3eb778a4a3274dd78dd531 (diff) | |
[1.9.x] Made a couple tutorial corrections for Django 1.9.
Backport of 8a5a002f2f94eec2a6d01e3004c3e6a2ddccd432 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/intro/tutorial01.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index dcf0a3fe09..c7774397af 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -227,6 +227,7 @@ That'll create a directory :file:`polls`, which is laid out like this:: polls/ __init__.py admin.py + apps.py migrations/ __init__.py models.py @@ -261,6 +262,7 @@ Your app directory should now look like:: polls/ __init__.py admin.py + apps.py migrations/ __init__.py models.py @@ -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 -``mysite/urls.py`` insert an :func:`~django.conf.urls.include`, leaving you -with: +``mysite/urls.py``, add an import for ``django.conf.urls.include`` and insert +an :func:`~django.conf.urls.include` in the ``urlpatterns`` list, so you have: .. snippet:: :filename: mysite/urls.py |
