mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-30 00:31:09 +02:00
Run ASGI server instead of WSGI
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -21,6 +21,7 @@ from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
from django.views.defaults import bad_request, page_not_found, permission_denied, server_error
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
from participation.views import MotivationLetterView
|
||||
from registration.views import HealthSheetView, ParentalAuthorizationView, PhotoAuthorizationView, \
|
||||
ScholarshipView, SolutionView, SynthesisView, VaccineSheetView
|
||||
@ -64,6 +65,11 @@ if 'cas_server' in settings.INSTALLED_APPS: # pragma: no cover
|
||||
path('cas/', include('cas_server.urls', namespace="cas_server")),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
# Serve static files in DEBUG mode
|
||||
import django.contrib.staticfiles.urls
|
||||
urlpatterns += django.contrib.staticfiles.urls.urlpatterns
|
||||
|
||||
handler400 = bad_request
|
||||
handler403 = permission_denied
|
||||
handler404 = page_not_found
|
||||
|
Reference in New Issue
Block a user