Skip to content

Commit

Permalink
Whitenoise root
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalarico committed Aug 10, 2018
1 parent 24695be commit efe8eec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions project/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
WHITENOISE_ROOT = STATICFILES_DIRS[0]

# Insert Whitenoise Middleware at top but below Security Middleware
MIDDLEWARE.insert(1, 'whitenoise.middleware.WhiteNoiseMiddleware',)
Expand Down

0 comments on commit efe8eec

Please sign in to comment.