#10081: In tutorial 3, url decoupling is incomplete
------------------------------------+---------------------------------------
 Reporter:  [email protected]     |       Owner:  nobody    
   Status:  new                     |   Milestone:            
Component:  Documentation           |     Version:  1.0       
 Keywords:  tutorial 3 urls routes  |       Stage:  Unreviewed
Has_patch:  0                       |  
------------------------------------+---------------------------------------
 in tutorial 3, the last mention of polls/urls.py still references the site
 in wich it's installed, missing the point on decoupling:

 {{{
 urlpatterns = patterns('mysite.polls.views',
     (r'^$', 'index'),
     (r'^(?P<poll_id>\d+)/$', 'detail'),
     (r'^(?P<poll_id>\d+)/results/$', 'results'),
     (r'^(?P<poll_id>\d+)/vote/$', 'vote'),
 )
 }}}

 Should be:

 {{{
 urlpatterns = patterns('polls.views',
     (r'^$', 'index'),
     (r'^(?P<poll_id>\d+)/$', 'detail'),
     (r'^(?P<poll_id>\d+)/results/$', 'results'),
     (r'^(?P<poll_id>\d+)/vote/$', 'vote'),
 )
 }}}

 I'm a complete newbie but that makes more sense to me (and it works).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10081>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to