From e7cd68c9f8436e6a44fa49432e2ffb117e9abcc6 Mon Sep 17 00:00:00 2001 From: Dhruv Shetty Date: Fri, 2 Dec 2022 01:28:56 +0100 Subject: [PATCH] More changes to fix static --- settings.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/settings.py b/settings.py index 2fabaa0..fe44de9 100644 --- a/settings.py +++ b/settings.py @@ -122,17 +122,17 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # BASE_DIR = Path(__file__).resolve().parent.parent -STATIC_URL = 'static/' +STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' -TEMPLATE_DIRS = ( - os.path.join(BASE_DIR, 'templates'), - os.path.join(BASE_DIR, 'oscar'), - # Add to this list all the locations containing your static files -) -# STATICFILES_DIRS = ( -# location('static/'), +# TEMPLATE_DIRS = ( +# os.path.join(BASE_DIR, 'templates'), +# os.path.join(BASE_DIR, 'oscar'), +# # Add to this list all the locations containing your static files # ) +STATICFILES_DIRS = ( + os.path.join(BASE_DIR, 'static'), +) STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder',