From 30b7e995f872c8129cee8321e9650e7aa1eff8a7 Mon Sep 17 00:00:00 2001 From: scayac Date: Mon, 16 Jun 2025 17:12:51 +0200 Subject: [PATCH] Gestion des fichiers statiques dans settings --- ia_prof/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ia_prof/settings.py b/ia_prof/settings.py index 21b3417..183e840 100644 --- a/ia_prof/settings.py +++ b/ia_prof/settings.py @@ -101,6 +101,8 @@ USE_TZ = True # https://docs.djangoproject.com/en/4.x/howto/static-files/ STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, 'static') +STATICFILES_DIRS = [os.path.join(BASE_DIR, 'main', 'templates', 'static')] if os.path.exists(os.path.join(BASE_DIR, 'main', 'templates', 'static')) else [] # Default primary key field type # https://docs.djangoproject.com/en/4.x/ref/settings/#default-auto-field