diff --git a/schoolapps/schoolapps/urls.py b/schoolapps/schoolapps/urls.py index 1c4e20badfd39f292679eb5c1f021faaade7e4d1..b423959129d9b2f28e9375ff3dc2b423c6eacfd0 100755 --- a/schoolapps/schoolapps/urls.py +++ b/schoolapps/schoolapps/urls.py @@ -33,8 +33,10 @@ def manifest(request): def serviceworker(request): return serve(request, "common/pwabuilder-sw.js") + handler404 = 'dashboard.views.error_404' + def custom_page_not_found(request): return defaults.page_not_found(request, None, "common/404.html") @@ -94,4 +96,3 @@ urlpatterns = [ urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) -