#15695: Add "url_name" to HttpRequest
----------------------------+---------------------------
Reporter: nischu7 | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version: 1.3
Keywords: | Triage Stage: Unreviewed
Has patch: 1 |
----------------------------+---------------------------
In order to simplify the implementation of navigation systems within
templates, the HttpRequest instance passed around in the request cycle
should held a "url_name" property.
Example:
You define a url that looks like this one:
{{{
url(r'^$', 'core.views.dashboard', name='dashboard'),
}}}
You'll be able to get the name by accessing "request.url_name". This is
more efficient than having to re-resolve the URL in the views/middleware
classes/template tag implementations etc.
--
Ticket URL: <http://code.djangoproject.com/ticket/15695>
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.