Skip to content

Commit

Permalink
Fixed #14432 -- Added an import statement which was previously implie…
Browse files Browse the repository at this point in the history
…d in tutorial 3's URLconf to make it as explicit as possible for new users. Thanks to gorus for the report and andrews for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
Gabriel Hurley committed Oct 20, 2010
1 parent e9d6662 commit d1a632f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/intro/tutorial03.txt
Expand Up @@ -498,9 +498,12 @@ Here's what happens if a user goes to "/polls/34/" in this system:
remaining text -- ``"34/"`` -- to the 'polls.urls' URLconf for remaining text -- ``"34/"`` -- to the 'polls.urls' URLconf for
further processing. further processing.


Now that we've decoupled that, we need to decouple the 'polls.urls' Now that we've decoupled that, we need to decouple the ``polls.urls``
URLconf by removing the leading "polls/" from each line, and removing the URLconf by removing the leading "polls/" from each line, and removing the
lines registering the admin site:: lines registering the admin site. Your ``polls.urls`` file should now look like
this::

from django.conf.urls.defaults import *


urlpatterns = patterns('polls.views', urlpatterns = patterns('polls.views',
(r'^$', 'index'), (r'^$', 'index'),
Expand Down

0 comments on commit d1a632f

Please sign in to comment.