Loading docs/intro/tutorial01.txt +4 −2 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -261,6 +262,7 @@ Your app directory should now look like:: polls/ __init__.py admin.py apps.py migrations/ __init__.py models.py Loading @@ -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 Loading Loading
docs/intro/tutorial01.txt +4 −2 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -261,6 +262,7 @@ Your app directory should now look like:: polls/ __init__.py admin.py apps.py migrations/ __init__.py models.py Loading @@ -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 Loading