update for prod

This commit is contained in:
lauren 2021-08-14 20:20:01 -04:00
parent a867f38153
commit 8eddee53fb
2 changed files with 6 additions and 0 deletions

View File

@ -7,3 +7,5 @@ name = "pypi"
Django = "~=3.2"
psycopg2-binary = "~=2.8.6"
social-auth-app-django = "~=4.0.0"
gunicorn = "*"
whitenoise = "*"

View File

@ -45,6 +45,7 @@ INSTALLED_APPS = [
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
@ -166,6 +167,9 @@ STATIC_ROOT = BASE_DIR / "serve"
STATICFILES_DIRS = [
BASE_DIR / "static",
]
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field