On Tue, 2007-06-26 at 19:58 +0000, Justin wrote: > On Jun 26, 12:12 pm, Justin <[EMAIL PROTECTED]> wrote: > > I'm wondering though, is it possible to use reverse() and pass it some > > args, to use it as the post_save_redirect in generic views? > > On second thought, this is kind of a stupid thing to do in the first > place... why would I want to avoid hard coding urls in the very same > file where they are defined? That's a silly thing to do. I think I was > getting a little too anal there. :)
It's actually not that stupid. If you have urls hard-coded in the template, you have to make sure that you change them if you change the url patterns of your app. If you use the {% url %} tag, you can change the url patterns willy-nilly and only have to make changes if you rename the patterns or the view functions. Following this pattern would seem to make it easier to make apps portable. Todd --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---