Opened 15 years ago
Closed 15 years ago
#11878 closed (wontfix)
Allow using a settings.py setting instead of runserver's "--adminmedia" settings
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
As far as I could see, there is no such configuration option currently, that would setting what
http://docs.djangoproject.com/en/dev/ref/django-admin/#djadminopt---adminmedia
in settings.py
Having such a setting, possibly called ADMIN_MEDIA_ROOT (following MEDIA_ROOT) would allow one to ensure that if --adminmedia setting is needed, it is always used.
Note that the "don't serve media files with django in production" doesn't stand as a counter-argument, since having such a setting would only affect the dev server (manage.py runserver) which shouldn't be used in production anyway.
This request seems to have been raised previously in #8336, but that tickets was closed as wontfix; Note that that old ticket only mentioned having such a configuration option tangentially, in http://code.djangoproject.com/ticket/8336#comment:7, so I would like to assume that the wontfix verdict is ment for the orignal issue raised in that ticket, and not to this feature, which is raised in that comment.
In the ticket which led to the implementation of
--adminmedia
(#2600) a setting was specifically rejected in favor of the runserver option.