From a41468afeea370534585ac9ba803c2af20ce0526 Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 5 Jun 2024 16:59:10 +0200 Subject: [PATCH] feat(settings): add STATICFILES_DIRS configuration Added STATICFILES_DIRS to the Django settings to specify additional directories where Django will look for static files, apart from the static/ directory. This change allows for better organization and management of static files, specifically by including project-specific assets located in the coffeemachine/static directory. This update facilitates the development process by ensuring that static files are efficiently managed and served during development. --- coffeemachine/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coffeemachine/settings.py b/coffeemachine/settings.py index ddcbd02..165bc53 100644 --- a/coffeemachine/settings.py +++ b/coffeemachine/settings.py @@ -119,6 +119,10 @@ USE_TZ = True STATIC_URL = 'static/' +STATICFILES_DIRS = [ + BASE_DIR / "coffeemachine" / "static", +] + # Default primary key field type # https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field