1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 05:18:23 +02:00

Add error pages

This commit is contained in:
Yohann D'ANELLO
2020-05-05 02:51:53 +02:00
parent cd928a2263
commit 559a0c923d
5 changed files with 48 additions and 0 deletions

View File

@ -17,6 +17,7 @@ from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from django.views.defaults import bad_request, permission_denied, page_not_found, server_error
from django.views.generic import TemplateView
from member.views import DocumentView
@ -38,3 +39,8 @@ urlpatterns = [
# urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
handler400 = bad_request
handler403 = permission_denied
handler404 = page_not_found
handler500 = server_error