#12299: Inconsistency in Tutorial, part 3.
---------------------------+------------------------------------------------
Reporter: tofik | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.1
Keywords: tutorial | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
concerns:
=== Tutorial, Part 3 ===
==== Decoupling the URLconfs ====
There is a 'urls.py' file in 'mysite' directory that looks like:
{{{
urlpatterns = patterns('mysite.polls.views',
(r'^polls/$', 'index'),
(r'^polls/(?P<poll_id>\d+)/$', 'detail'),
(r'^polls/(?P<poll_id>\d+)/results/$', 'results'),
(r'^polls/(?P<poll_id>\d+)/vote/$', 'vote'),
)
}}}
It is adivsed to copy this file to 'polls' subdirectory, and to modify
original file, to make it looks like:
{{{
# ...
urlpatterns = patterns('',
(r'^polls/', include('mysite.polls.urls')),
# ...
}}}
So if now i'll take a look at my site:
||Here's what happens if a user goes to "/polls/34/" in this system:||
Unfortunatelly there will 'Page not found' appear :(
In my opinion, there shoul be:
||Here's what happens if a user goes to "polls/polls/34/" in this
system:||
otherwise there should be something more removed ('polls') from one of the
urls.py files.
--
Ticket URL: <http://code.djangoproject.com/ticket/12299>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.