Changed error code 500 testing so it works better with Django 1.x

- Legacy-Id: 1774
This commit is contained in:
Pasi Eronen 2009-11-07 00:28:20 +00:00
parent a5b787710c
commit 3806e92406

View file

@ -72,5 +72,5 @@ if django.VERSION[0] == 0:
if settings.SERVER_MODE in ('development', 'test'):
urlpatterns += patterns('',
(r'^(?P<path>(?:images|css|js)/.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
(r'^_test500/$', 'ietf.doesnotexist'),
(r'^_test500/$', lambda x: None),
)