Skip to content

Commit

Permalink
change how we handle static files
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Nov 1, 2023
1 parent 74bf517 commit 21341bd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions asset_dashboard/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down Expand Up @@ -160,11 +159,7 @@
# https://docs.djangoproject.com/en/2.2/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = '/static'
STATICFILES_STORAGE = os.getenv(
'DJANGO_STATICFILES_STORAGE',
'whitenoise.storage.CompressedManifestStaticFilesStorage'
)
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
Expand Down

0 comments on commit 21341bd

Please sign in to comment.