Re: MEDIA_URL and trailing slash (documentation)

2007-09-23 Thread Collin Grady
Deryck Hodge said the following: > 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

Re: MEDIA_URL and trailing slash (documentation)

2007-09-22 Thread Deryck Hodge
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 i

Re: MEDIA_URL and trailing slash (documentation)

2007-09-22 Thread Martin Winkler
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

Re: MEDIA_URL and trailing slash (documentation)

2007-09-22 Thread Martin Winkler
Am Fri, 21 Sep 2007 20:25:09 - schrieb SmileyChris <[EMAIL PROTECTED]>: > > Currently the docs [1] say "Note that this should have a trailing > slash if it has a path component." Since Django uses urlparse.urljoin for concatenating, you can omit the trailing slash, if - and only if - the M

MEDIA_URL and trailing slash (documentation)

2007-09-21 Thread SmileyChris
Currently the docs [1] say "Note that this should have a trailing slash if it has a path component." Common use is now href="{{ MEDIA_URL }}images/a.png" so it seems to me like you should *always* put a trailing slash in, whether there is a path component or not. Am I missing something? [1] htt