Code

Opened 5 years ago

Closed 5 years ago

#11878 closed (wontfix)

Allow using a settings.py setting instead of runserver's "--adminmedia" settings

Reported by: abeld@… 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: UI/UX:

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.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

In the ticket which led to the implementation of --adminmedia (#2600) a setting was specifically rejected in favor of the runserver option.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.