diff --git a/README.md b/README.md index 67ec94db..987312ed 100644 --- a/README.md +++ b/README.md @@ -369,7 +369,7 @@ DJANGO_SECRET_KEY=your_django_secret_key All libraries are included to facilitate offline development, it will take port 8008, 8025, 5555 when running, please change port in local.yml if those ports are occupied. It's Debian based. * clone the repo, for example, `git clone https://github.com/xjlin0/attendees32.git` -* check local python version, Django coockie cutter is developed with Python 3 +* check local python version, Django cookie cutter is developed with Python 3 * Install pre-commit for python, such as `pip3 install pre-commit` (pre-commit settings are at .git/hooks/pre-commit). * There is no need to have local docker machine, Django or Postgres running. * Add .envs/.local/.sendgrid.env diff --git a/config/settings/production.py b/config/settings/production.py index 88395cec..1a1a165b 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -81,6 +81,7 @@ # STATIC # ------------------------ STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" +WHITENOISE_MAX_AGE = 28800 # 8 hours in seconds # MEDIA # ------------------------------------------------------------------------------ DEFAULT_FILE_STORAGE = "attendees.utils.storages.MediaRootS3Boto3Storage"