#3402: Enable the 'stem' part of the matched URL to be passed to the view
----------------------+-----------------------------------------------------
Reporter: medhat | Owner: adrian
Status: new | Component: Core framework
Version: SVN | Resolution:
Keywords: | Stage: Design decision needed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------+-----------------------------------------------------
Comment (by Matt):
You can already do this. For example:
{{{(r'^(?P<section>news)/', include('myproject.apps.news.urls')),}}}
Each view mapped to a URL in {{{myproject.apps.news.urls}}} will receive a
variable {{{section}}} containing the string '{{{news}}}'.
In my humble opinion, I would suggest closing this ticket.
--
Ticket URL: <http://code.djangoproject.com/ticket/3402#comment:2>
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
-~----------~----~----~----~------~----~------~--~---