#14627: Add example for URLconfs for how to concatenate calls to patterns() when
composing urlpatterns to allow for URLs not associated with polls.views
----------------------------------+-----------------------------------------
 Reporter:  filmer                |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  Documentation         |     Version:  1.2       
 Keywords:  URLconfs concatenate  |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 This was my question and answer that I asked in the IRC chatroom #Django
 on freenode.  I thought it might be worth showing an example of this.
 Maybe it is beyond the scope of this document - maybe not... for sure it
 was a question on my mind when I read this tutorial.

 Chatroom copy/paste:
 [1:52pm] filmer: I have a newb question about urls - I'm following
 http://docs.djangoproject.com/en/dev/intro/tutorial03/#simplifying-the-
 urlconfs  And under "Simplifying the URLconfs it shows how you can set
 'polls.views' at the beginning of patterns variable.  My question is -
 what if later on down in patterns you want to list something else that has
 nothing to do with polls.views - for instance admin or CSS or anything
 else that you might have going on - how do you snip off 'polls.views'?

 ... [cut out chat room chatter here]

 [1:54pm] j00bar: filmer: you either don't put anything at the beginning of
 patterns or you concatenate multiple calls to patterns() together when
 composing urlpatterns
 [1:54pm] filmer: j00bar: Thank you very much
 [1:55pm] • filmer owes j00bar a beer

 ... [cut out chat room chatter here]

 [1:56pm] filmer: maybe they should show an example of that in the tutorial
 - it might prove helpful in the future for other dumb people like me

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