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
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
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
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
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