Commit fd6d8b6f by Diana Huang Committed by GitHub

Merge pull request #13907 from edx/diana/fix-lms-urls

Add 404 and 500 handlers back in.
parents 940787a1 c9beb7f7
...@@ -199,6 +199,7 @@ if 'debug_toolbar' in settings.INSTALLED_APPS: ...@@ -199,6 +199,7 @@ if 'debug_toolbar' in settings.INSTALLED_APPS:
) )
# Custom error pages # Custom error pages
# These are used by Django to render these error codes. Do not remove.
# pylint: disable=invalid-name # pylint: disable=invalid-name
handler404 = 'contentstore.views.render_404' handler404 = 'contentstore.views.render_404'
handler500 = 'contentstore.views.render_500' handler500 = 'contentstore.views.render_500'
......
...@@ -927,6 +927,13 @@ if 'debug_toolbar' in settings.INSTALLED_APPS: ...@@ -927,6 +927,13 @@ if 'debug_toolbar' in settings.INSTALLED_APPS:
url(r'^__debug__/', include(debug_toolbar.urls)), url(r'^__debug__/', include(debug_toolbar.urls)),
) )
# Custom error pages
# These are used by Django to render these error codes. Do not remove.
# pylint: disable=invalid-name
handler404 = 'static_template_view.views.render_404'
handler500 = 'static_template_view.views.render_500'
# include into our URL patterns the HTTP REST API that comes with edx-proctoring. # include into our URL patterns the HTTP REST API that comes with edx-proctoring.
urlpatterns += ( urlpatterns += (
url(r'^api/', include('edx_proctoring.urls')), url(r'^api/', include('edx_proctoring.urls')),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment