Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-21 Thread SmileyChris
I don't see how it would break on your production server as long as you have a trailing slash in the server's media_url too. On Sep 21, 5:05 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > I agree by the way, MEDIA_URL should always have a trailing slash. > Does anyone know why the documentation says

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Dave Lowe
I agree by the way, MEDIA_URL should always have a trailing slash. Does anyone know why the documentation says not to include a trailing slash on a domain? Why not have "http://media.example.com/";? On Sep 20, 4:53 pm, SmileyChris <[EMAIL PROTECTED]> wrote: > On Sep 20, 5:53 pm, Dave Lowe <[EMAIL

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Dave Lowe
And then it breaks on my production server. The slash has to be there in the template. On Sep 20, 4:53 pm, SmileyChris <[EMAIL PROTECTED]> wrote: > On Sep 20, 5:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > > > I have the feeling I'm missing something. What does everyone else do > > to get aroun

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread SmileyChris
On Sep 20, 5:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > I have the feeling I'm missing something. What does everyone else do > to get around this? Uh, so remove the slash in your template. href="{{ MEDIA_URL }}css/master.css" Side note - IMO, MEDIA_URL should *always* have a trailing slash.

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Dave Lowe
I'm using the Django built-in server for dev. On Sep 20, 3:15 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Sep 20, 3:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > > > > > I'm running into issues with theMEDIA_URLand that cursed trailing > > slash. Here's what the documentation says aboutM

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Graham Dumpleton
On Sep 20, 3:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > I'm running into issues with the MEDIA_URL and that cursed trailing > slash. Here's what the documentation says about MEDIA_URL: > > "Note that this should have a trailing slash if it has a path > component." Good examples given > are:htt