Guillermo Fernandez Castellanos wrote: > In that case, people tend to hardcode teh /event/ part into the > get_absolute_url function of the model.
There's a better (IMHO) way to do this with reverse url lookup for a given view that Adrian has added not long before 0.95. Usually an app knows its views so it can construct actual URLs for them. There's a ticket with a patch that brings it into templates: http://code.djangoproject.com/ticket/2606 It works like this: {% url events.views.some_view %} ... (assuming that 'events' is an app added in INSTALLED_APPS). P.S. Disclosure: I'm the one who wrote the patch so feel free to ask questions and make suggestions. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---