#8336: runserver option for disabling admin static files serving
------------------------------------------------+---------------------------
Reporter: jakub_vysoky | Owner: nobody
Status: reopened | Milestone:
Component: django-admin.py runserver | Version: SVN
Resolution: | Keywords: admin media
runserver
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------------+---------------------------
Changes (by anonymous):
* status: closed => reopened
* resolution: wontfix =>
Comment:
Burned several hours scratching my head with this on multiple occasions as
well. In DEBUG mode I have my media/ served with the django static serve
in urls.py, and admin/ is a subfolder of that. However this django
'feature' overrides my media/admin/ with the django builtins.
Re-opening since this 'feature' is affecting a lot of people. This silent
magic overriding of media directories is a really bad idea, and none of
the proposed workarounds are useful. Having to type --adminmedia each time
is a really horrible idea; if I work on something else for a week, then
come back to it, I always forget, and burn yet another hour wondering why
my customizations aren't showing up.
At the VERY least, my urls.py should override django's magic, not the
other way around. If I'm specifying a media/ folder, obviously I will need
admin/ in it on production, so django should assume I will have it set up
the same way in development.
--
Ticket URL: <http://code.djangoproject.com/ticket/8336#comment:7>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---