#14142: Improvement (?) on tutorial part 3
-----------------------------+----------------------------------------------
 Reporter:  AMJ              |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  Documentation    |     Version:  1.2       
 Keywords:  Tutorial part 3  |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 In "'''Decoupling the URLconfs'''", where it says

 {{{
 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'),
 )
 }}}
 It should say (IMHO)

 {{{
 from django.conf.urls.defaults import *  # <--- this line

 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'),
 )
 }}}
 That way, it should be clearer that its the whole decoupled file. I've not
 tested what happens if I let the admin stuff in both url.py files.

 My two cents. Thanks you all.

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