Opened 18 years ago
Closed 18 years ago
#4665 closed (duplicate)
Serving media files in dev mode conflicts if you name the URL media
Reported by: | anonymous | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
Severity: | Keywords: | media static serve dev | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The example>
(r'site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/media', 'show_indexes': True}),
works just fine, but if you happen to change the site_media prefix to media, then it will conflict with Djangos own internal media serving for the admin add on and wont work.
Note:
See TracTickets
for help on using tickets.
Dupe of #2891