Opened 5 years ago

Closed 5 years ago

#14607 closed (duplicate)

Settings.py: A blank ADMIN_MEDIA_PREFIX fails annoyingly

Reported by: dmlodecki@… Owned by: nobody
Component: Uncategorized Version: 1.2
Severity: Keywords: settings.py
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

If you set ADMIN_MEDIA_PREFIX = '' in settings.py, your application will die with simply a "Page Not Found: /" (no html) even if you have DEBUG set to true.

Sorry if this is a duplicate; I searched as best I could for this problem before filing.

Change History (1)

comment:1 Changed 5 years ago by kmtracey

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

It is a duplicate: #10636 is the same. Why did you want to set ADMIN_MEDIA_PREFIX to an empty value? Perhaps the docs could warn to not do that, or some check could be put in to raise ImproperlyConfigured if that is done, by I'm a little mystified as to why people are doing this. If you really want to pursue getting something changed here, please reopen #10636 and provide a concrete suggestion for how to improve matters (and please try the current trunk behavior, since it may have changed recently given the static file changes).

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