Opened 13 years ago

Closed 13 years ago

#18193 closed Cleanup/optimization (invalid)

show_urls is listing invalid urls

Reported by: aaron.lisman@… Owned by: nobody
Component: Core (Management commands) Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If you include() some urlpatterns using a regex that ends in $, the included urls will show up when running 'manage.py show_urls', but they will 404 (as they should).

e.g.:

foo_patterns = patterns('', url(r'^something/$', 'myapp.views.something'))
urlpatterns = patterns('', url(r'^foos/$', include(foo_patterns)))

show_urls will list /foos/something/, but that path will 404

Change History (1)

comment:1 by Claude Paroz, 13 years ago

Resolution: invalid
Status: newclosed

show_urls is not part of Django itself. You'll probably want to report the issue in https://github.com/django-extensions/django-extensions/issues

Note: See TracTickets for help on using tickets.
Back to Top