#10636: Development server fails if settings module does not define
ADMIN_MEDIA_PREFIX
----------------------------------------------------------+-----------------
          Reporter:  Lee Phillips <[email protected]>  |         Owner:  
nobody
            Status:  reopened                             |     Milestone:      
  
         Component:  Uncategorized                        |       Version:  1.2 
  
        Resolution:                                       |      Keywords:      
  
             Stage:  Unreviewed                           |     Has_patch:  0   
  
        Needs_docs:  0                                    |   Needs_tests:  0   
  
Needs_better_patch:  0                                    |  
----------------------------------------------------------+-----------------
Changes (by [email protected]):

  * status:  closed => reopened
  * version:  1.0 => 1.2
  * resolution:  invalid =>

Comment:

 From kmtracey in #14607:
 ''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).''

 Leaving ADMIN_MEDIA_PREFIX is certainly an incorrect configuration, but
 one that people may try when attempting to serve admin media files.
 People are doing it accidentally, not deliberately.  The problem is that
 despite DEBUG being set to true, no helpful trace is provided, just the
 simple 404.

 Because it manifests in the user's browser as a standard 404, this failure
 mode makes some people think there might be a problem with their django or
 webserver setup, rather than a problem with their code.  It appears like
 the web browser is unable to reach the webserver.

 Concrete suggestion for improvement:  If ADMIN_MEDIA_PREFIX is empty,
 output an error trace page saying "ADMIN_MEDIA_PREFIX in settings.py is
 empty.  This is probably not what you want to do."  Additionally, the docs
 should warn against this configuration.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10636#comment:5>
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.

Reply via email to