#30825: Confusing message on the default Django home page mentioning the debug
settings
-------------------------------------+-------------------------------------
     Reporter:  Therry van Neerven   |                    Owner:  KESHAV
                                     |  KUMAR
         Type:  Bug                  |                   Status:  closed
    Component:  Uncategorized        |                  Version:  2.2
     Severity:  Normal               |               Resolution:
                                     |  worksforme
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  1
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * status:  assigned => closed
 * resolution:   => worksforme


Comment:

 The debug view is **not** shown when `DEBUG=False`. Instead a generic 404
 is show.

 Unless you can provide reproduce steps, this isn't something we need to
 fix.

 1. `django-admin startproject ticket_30825`
 2. `cd ticket_30825/`
 3. Edit `settings.py` with

     DEBUG = False
     ALLOWED_HOSTS = ['*']

 4. `./manage.py runserver`
 5. `curl -i http://127.0.0.1:8000`

 {{{
 HTTP/1.1 404 Not Found
 Date: Wed, 02 Oct 2019 14:59:27 GMT
 Server: WSGIServer/0.2 CPython/3.7.3
 Content-Type: text/html
 X-Frame-Options: DENY
 Content-Length: 179
 X-Content-Type-Options: nosniff


 <!doctype html>
 <html lang="en">
 <head>
   <title>Not Found</title>
 </head>
 <body>
   <h1>Not Found</h1><p>The requested resource was not found on this
 server.</p>
 </body>
 </html>

 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30825#comment:4>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.07fec2271feb7adbfe461c71d3269130%40djangoproject.com.

Reply via email to