On 9/22/07, Martin Winkler <[EMAIL PROTECTED]> wrote: > > Sorry, please ignore my previous post. I did not understand what you > really meant. :-/ > > SmileyChris wrote: > >> Common use is now href="{{ MEDIA_URL }}images/a.png" > >> so it seems to me like you should *always* put a trailing slash in > > I'm very much +1 on this too. It makes a lot of sense to always use the > trailing slash when MEDIA_URL is being used in templates directly. >
Another use case to consider: {{ MEDIA_URL }}{{ photo.get_absolute_url }} No way to avoid an extra slash if your get_absolute_url begins with a slash, which is common. I'm not passionate about what we recommend, but just wanted to remind that MEDIA_URL is not just used for get_FOO_url construction or for manually building urls. Cheers, deryck --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---