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:
@ -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
|
||||
|
Reference in New Issue
Block a user