diff --git a/colline/settings.py b/colline/settings.py index ee2286e..4ac3293 100644 --- a/colline/settings.py +++ b/colline/settings.py @@ -32,6 +32,7 @@ ALLOWED_HOSTS = ["localhost", "127.0.0.1", "colline.legaragenumerique.eu"] # Application definition INSTALLED_APPS = [ + "whitenoise.runserver_nostatic", 'polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', @@ -49,6 +50,7 @@ MIDDLEWARE = [ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', + "whitenoise.middleware.WhiteNoiseMiddleware", ] ROOT_URLCONF = 'colline.urls' diff --git a/requirements.txt b/requirements.txt index 8d5c6bc..58778c7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,4 @@ -Django >= 5.0.1 -gunicorn \ No newline at end of file +asgiref==3.7.2 +Django==5.0.2 +sqlparse==0.4.4 +whitenoise==6.6.0