Am Fri, 21 Sep 2007 20:25:09 -0000 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 MEDIA_URL is just a hostname without any subdirectory. I for one always add the trailing slash, since urlparse.urljoin takes care of the correct syntax. If you start a new django project, the settings.py file should clarify the situation even more - as long as you use a trunk revision >= 5404: lines 40 ff # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples:"http://media.lawrence.com", "http://example.com/media/" (This bit me a couple of times before, so I created the ticket #4290 which was refined and commited by Malcolm Tredinnick) Martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---