On Tue, 2008-10-21 at 14:14 -0700, erikcw wrote: > Hi all, > > I'm working on a project that uses flatpages pretty heavily. I was > wondering if there was a way to use named urls with flatpages so that > I can use reverse() in my other views and {% url flat_privacy_policy > %} in my templates.
No, this isn't possible with the "url" tag. Flatpages don't have specific URL Conf entries, since they're implemented essentially as a fallback if all other matching fails via middleware. There's also the simple issue that the URLs for flat pages don't have a specific view associated with them and it's the views and the URL Conf entries that have names, so there's nothing to attach a name to with flat pages. Even a custom templatetag to do this would still end up needing to be passed the full URL you specified in the flatpages entry, so I'm not sure what would be saved by doing this. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---