Opened 17 years ago

Closed 14 years ago

#6282 closed (fixed)

Clarify comment for MEDIA_URL in settings.py

Reported by: Florian Apolloner Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords: settings MEDIA_URL
Cc: apollo13@… Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Is there a reason why the comment for MEDIA_URL suggests

Make sure to use a trailing slash if there is a path component (optional in other cases).

Wouldn't be wise to suggest using a trailing slash all the time? This way the MEDIA_URL would be consistent and we could use {{MEDIA_URL}}path/to/file in templates without caring about a trailing slash.

Change History (2)

comment:1 by Simon Greenhill <dev@…>, 17 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Julien Phalip, 14 years ago

Resolution: fixed
Status: newclosed

Well, it seems like this has been fixed at some stage. The comment is now pretty clear: http://code.djangoproject.com/browser/django/trunk/django/conf/project_template/settings.py?rev=15501#L50

Note: See TracTickets for help on using tickets.
Back to Top