#11991: Inconsistent MEDIA_URL values
----------------------------+-----------------------------------------------
Reporter: anonymous | Owner: nobody
Status: new | Milestone: 1.2
Component: Core framework | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
----------------------------+-----------------------------------------------
The documentation states the following:
{{{
URL that handles the media served from MEDIA_ROOT. Example:
"http://media.lawrence.com"
Note that this should have a trailing slash if it has a path component.
Good: "http://www.example.com/static/" Bad:
"http://www.example.com/static"
}}}
Why does a path component need to have a trailing slash but a domain
doesn't?
We should pick one of these forms, as changing the value affects other
areas (like the FileField.url attribute).
I, personally, think the slash-less form makes templates look better:
{{{
<a href="{{ MEDIA_URL }}/bla.js">...</a>
Versus:
<a href="{{ MEDIA_URL }}bla.js">...</a>
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/11991>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---