#31184: URL dispatcher docs should mention path_info
-----------------------------------------+------------------------
               Reporter:  Roy Smith      |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  2.2
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 At https://docs.djangoproject.com/en/2.2/topics/http/urls/#how-django-
 processes-a-request, it says:

 {{{
 Django runs through each URL pattern, in order, and stops at the first one
 that matches the requested URL.
 }}}

 it should mention here that it's matching against request.path_info, and
 provide a link to https://docs.djangoproject.com/en/2.2/ref/request-
 response/ which explains how request.path differs from request.path_info.

 In addition, the debug 404 page, where it says:

 {{{
 The current path ... didn't match any of these.
 }}}

 instead of "current path", it should say something like, "current path
 (request.path_info)", which would give a hint about what to read to
 understand why the current path isn't what's shown above, as the "Request
 URL".

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31184>
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/051.030cd25ec030ef3ef675f3c777dbb617%40djangoproject.com.

Reply via email to