Opened 17 years ago

Closed 17 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.

Change History (1)

comment:1 by Chris Beaven, 17 years ago

Resolution: duplicate
Status: newclosed

Dupe of #2891

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