Of course within `reverse` function there is `resolve` function that parses
path and return view function, positional arguments, and named arguments.


On Fri, Feb 27, 2009 at 2:33 PM, Andrew Ingram <a...@andrewingram.net>wrote:

>
> Hi All,
>
> I'm trying to to build a model which can store a link to any page on
> the site. Ordinarily I'd just use a URLField, but I want to future-
> proof it. Instead I'd like to store the view name (including modules)
> and the parameter dict. Then I'd like to be able to retrieve these
> later and use them to return the correct URL.
>
> Is there a straightforward way to use django's url parser to take a
> URL and return the information I need? Presumably to turn them back
> into a URL I just need to use the reverse functionality somehow.
>
> Regards,
> Andrew Ingram
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to