1
0
mirror of https://github.com/django/django.git synced 2024-11-18 15:34:16 +00:00
django/tests/view_tests
Grzegorz Nosek 79558c787e Fixed #18373 - improved handling of Resolver404s from views
When django.core.urlresolvers.resolve was called from a view, failed
and the exception was propagated and rendered by technical_404_response,
the URL mentioned on the page was the current URL instead of the URL
passed to resolve().

Fixed by using the path attribute from the Resolver404 exception instead
of request.path_info. Also cleaned up the exceptions to use standard
named parameters instead of stuffing a dict in args[0]
2014-02-15 15:56:04 +01:00
..
app0
app1
app2
app3
app4
fixtures
locale
media
other_templates
templates
templatetags
tests Fixed #18373 - improved handling of Resolver404s from views 2014-02-15 15:56:04 +01:00
__init__.py
default_urls.py Fixed #21530 -- Prevent AttributeError in default URLconf detection code. 2013-12-07 03:21:58 +01:00
generic_urls.py Fixed #17942 -- Added a JsonResponse class to more easily create JSON encoded responses. 2014-02-14 18:25:19 -05:00
models.py Fixed #21774 -- Isolate all test urls from eachother. 2014-01-14 15:43:27 +00:00
regression_21530_urls.py Fixed #21530 -- Prevent AttributeError in default URLconf detection code. 2013-12-07 03:21:58 +01:00
urls.py
views.py Fixed #18373 - improved handling of Resolver404s from views 2014-02-15 15:56:04 +01:00