Is there a way to access a named url from within a view?

For example,

Using this as a reference-
http://www.djangoproject.com/documentation/url_dispatch/

say, I have this url:
url(r'/archive/(\d{4})/$', archive, name="full-archive")

and access it like this in a template:
{% url full-archive 1945 %}

Is there a way i could access it in a view?

def archive(request):
    Some code to access which named url here

Basically, I'd like to access the value "full-archive" while in the
archive view.

Does this make sense?  If so, is this possible?

Thanks,
Chris




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to