whitenoise compression and caching
This commit is contained in:
parent
15ba911feb
commit
74cd23cb31
1 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,8 @@ STATIC_ROOT = str(ROOT_DIR("staticfiles"))
|
|||
STATIC_URL = "/static/"
|
||||
# https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#std:setting-STATICFILES_DIRS
|
||||
STATICFILES_DIRS = [str(APPS_DIR.path("static"))]
|
||||
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
||||
|
||||
# https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#staticfiles-finders
|
||||
STATICFILES_FINDERS = [
|
||||
"django.contrib.staticfiles.finders.FileSystemFinder",
|
||||
|
|
Loading…
Reference in a new issue