#5283: decoupling example can be extended further
----------------------------------+-----------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  jacob        
  Status:  new                    |   Component:  Documentation
 Version:  0.96                   |    Keywords:  decoupling   
   Stage:  Unreviewed             |   Has_patch:  0            
----------------------------------+-----------------------------------------
 In Tutorial part 3:
 
 "Now that we've decoupled that, we need to decouple the
 'mysite.polls.urls' urlconf by removing the leading "polls/" from each
 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'),
 )"
 
 I tested this with:
 "urlpatterns = patterns('polls.views',"
 and it still works, and assuming this whole directory (polls) can be moved
 to other websites, it makes sense to drop out 'mysite.' from the pattern;
 allowing for copy and paste pluggability instead of copy paste and edit a
 little bit pluggability.

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