Set an url for the server_error page, for testing.
- Legacy-Id: 13772
This commit is contained in:
parent
1ce487a271
commit
811e9ff8c5
|
@ -8,6 +8,7 @@ from django.contrib.sitemaps import views as sitemap_views
|
||||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||||
from django.views import static as static_view
|
from django.views import static as static_view
|
||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
|
from django.views.defaults import server_error
|
||||||
|
|
||||||
import debug # pyflakes:ignore
|
import debug # pyflakes:ignore
|
||||||
|
|
||||||
|
@ -20,6 +21,7 @@ from ietf.liaisons.sitemaps import LiaisonMap
|
||||||
from ietf.meeting import views as meeting_views
|
from ietf.meeting import views as meeting_views
|
||||||
from ietf.utils.urls import url
|
from ietf.utils.urls import url
|
||||||
|
|
||||||
|
|
||||||
admin.autodiscover()
|
admin.autodiscover()
|
||||||
api.autodiscover()
|
api.autodiscover()
|
||||||
|
|
||||||
|
@ -95,7 +97,7 @@ if settings.SERVER_MODE in ('development', 'test'):
|
||||||
settings.DEBUG = True
|
settings.DEBUG = True
|
||||||
urlpatterns += staticfiles_urlpatterns()
|
urlpatterns += staticfiles_urlpatterns()
|
||||||
urlpatterns += [
|
urlpatterns += [
|
||||||
url(r'^_test500/$', lambda x: None),
|
url(r'^_test500/$', server_error), #utils_views.exception),
|
||||||
url(r'^environment/$', help_views.environment),
|
url(r'^environment/$', help_views.environment),
|
||||||
## maybe preserve some static legacy URLs ?
|
## maybe preserve some static legacy URLs ?
|
||||||
url(r'^(?P<path>(?:images|css|js)/.*)$', static_view.serve, {'document_root': settings.STATIC_ROOT+'ietf/'}),
|
url(r'^(?P<path>(?:images|css|js)/.*)$', static_view.serve, {'document_root': settings.STATIC_ROOT+'ietf/'}),
|
||||||
|
|
Loading…
Reference in a new issue