Opened 17 years ago
Last modified 16 years ago
#7269 closed
404 debug page: href=urls — at Version 1
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Keywords: | 404 debug | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
"Using the URLconf defined in urls.py, Django tried these URL patterns, in this order:"
Because I often find my self cut/pasting a URL pattern from that page into the address bar, I now can just click on the url patteren.
This is not production code, and it doesn't work 100% of the time in development. But it is 'simple', and better than nothing and is working well for me. The main reason against it is because if it gets accepted into trunk, 5 seconds later someone is going to enter a bug report showing how it doesn't work for some URL, like ^polls/(?P<poll_id>\d+)/results/$
and this will be repeated every day for the next 100 years.
If I need to, I can come up with some wording like "do not count on these links working. If they do, great. If not, you are on your own. Please don't file a bug report unless you have a patch to make it better."
Change History (3)
by , 17 years ago
Attachment: | debug.py.diff added |
---|
by , 17 years ago
Attachment: | debug.py.2.diff added |
---|
comment:1 by , 17 years ago
Description: | modified (diff) |
---|
now works for include(foo.urls) urls too.