Opened 11 years ago

Closed 11 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: master
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: UI/UX:


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.

Change History (1)

comment:1 Changed 11 years ago by Chris Beaven

Resolution: duplicate
Status: newclosed

Dupe of #2891

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