diff options
Diffstat (limited to 'docs/intro/tutorial01.txt')
| -rw-r--r-- | docs/intro/tutorial01.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index 4eb8ecca4d..6db12d118b 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -293,15 +293,15 @@ with: urlpatterns = [ url(r'^polls/', include('polls.urls')), - url(r'^admin/', include(admin.site.urls)), + url(r'^admin/', admin.site.urls), ] .. admonition:: Doesn't match what you see? - If you're seeing ``admin.autodiscover()`` before the definition of - ``urlpatterns``, you're probably using a version of Django that doesn't - match this tutorial version. You'll want to either switch to the older - tutorial or the newer Django version. + If you're seeing ``include(admin.site.urls)`` instead of just + ``admin.site.urls``, you're probably using a version of Django that + doesn't match this tutorial version. You'll want to either switch to the + older tutorial or the newer Django version. You have now wired an ``index`` view into the URLconf. Lets verify it's working, run the following command: |
