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 Removed unneeded imports in tests's __init__.py and unified them. 2013-09-09 23:01:07 +02:00
app1 Removed unneeded imports in tests's __init__.py and unified them. 2013-09-09 23:01:07 +02:00
app2 Removed unneeded imports in tests's __init__.py and unified them. 2013-09-09 23:01:07 +02:00
app3 Removed unneeded imports in tests's __init__.py and unified them. 2013-09-09 23:01:07 +02:00
app4 Removed unneeded imports in tests's __init__.py and unified them. 2013-09-09 23:01:07 +02:00
fixtures Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
locale Fixed #21324 -- Translate CSRF failure view 2013-11-02 11:22:30 +01:00
media Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
other_templates Fixed #4278 -- Added a dirs parameter to a few functions to override TEMPLATE_DIRS. 2013-09-18 07:37:08 -04:00
templates Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
templatetags Fixing E302 Errors 2013-11-02 23:48:47 -05:00
tests Fixed #18373 - improved handling of Resolver404s from views 2014-02-15 15:56:04 +01:00
__init__.py Fixed all E261 warnings 2013-11-02 23:50:33 -05:00
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 adds fix and test for when a template is not specified at all to render(). fixes #21058. by jambonrose and ianawilson 2013-09-06 15:50:18 -05:00
views.py Fixed #18373 - improved handling of Resolver404s from views 2014-02-15 15:56:04 +01:00