Opened 18 years ago
Closed 15 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 , 18 years ago
| Triage Stage: | Unreviewed → Design decision needed |
|---|
comment:2 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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