#27508: Debug 404 page shouldn't include the request path prefix in the 
description
of URLconf matching
--------------------------------------+------------------------------------
     Reporter:  Tzu-ping Chung        |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Error reporting       |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Tim Graham):

 * stage:  Unreviewed => Accepted
 * component:  Core (Other) => Error reporting


Comment:

 The "Using the URLconf..." text is from the `TECHNICAL_404_TEMPLATE` --
 this goes through the `technical_404_response()` view rather than
 `page_not_found()`. Modifying `page_not_found()` seems incorrect since in
 a production setting, the full path is likely desired. I'm not certain if
 the
 [https://github.com/django/django/blob/master/django/views/debug.py#L456-L459
 request_path] in the `technical_404_reponse()` can be modified to fix the
 issue you described. Do you want to investigate further?

--
Ticket URL: <https://code.djangoproject.com/ticket/27508#comment:2>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.040da370503b556f0b68f7d1262b9923%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to