On Tue, Nov 17, 2009 at 7:33 PM, ringemup <ringe...@gmail.com> wrote:
> > It's really problematic to generate all the URLs (there are a lot of > them) in the view and then retrieve the correct ones in the correct > places in the template. It seems odd to me that {% url %} shouldn't > be able to take a variable view name. > > Well, you're not alone, if you search the trac you will find: http://code.djangoproject.com/ticket/10980 http://code.djangoproject.com/ticket/10745 http://code.djangoproject.com/ticket/7917 http://groups.google.com/group/django-developers/browse_thread/thread/fd30cb20f80c6c79 But that's the way it is, so I gave you the solution I would use, since personally I prefer to do more in views and less in templates. The discussion/tickets cited above might have other options noted that might appeal to you more. Karen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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=.