mirror of
https://github.com/tjsga/scavenger-hunt-2021.git
synced 2025-04-09 22:10:18 -04:00
update for prod
This commit is contained in:
parent
a867f38153
commit
8eddee53fb
2
Pipfile
2
Pipfile
|
@ -7,3 +7,5 @@ name = "pypi"
|
|||
Django = "~=3.2"
|
||||
psycopg2-binary = "~=2.8.6"
|
||||
social-auth-app-django = "~=4.0.0"
|
||||
gunicorn = "*"
|
||||
whitenoise = "*"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user