Skip to content

Commit

Permalink
More changes to fix static
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvshettty committed Dec 2, 2022
1 parent b42d027 commit e7cd68c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e7cd68c

Please sign in to comment.