Browse Source
Merge pull request #78 from CatalystCode/enhancement/update-whitenoise
Enhancement/Update whitenoise
pull/73/head
Hiroki Nakayama
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
1 deletions
-
app/app/settings.py
-
requirements.txt
|
|
@ -40,6 +40,7 @@ if os.environ.get('DEBUG') == 'False': |
|
|
|
# Application definition |
|
|
|
|
|
|
|
INSTALLED_APPS = [ |
|
|
|
'whitenoise.runserver_nostatic', |
|
|
|
'django.contrib.admin', |
|
|
|
'django.contrib.auth', |
|
|
|
'django.contrib.contenttypes', |
|
|
@ -55,6 +56,7 @@ INSTALLED_APPS = [ |
|
|
|
|
|
|
|
MIDDLEWARE = [ |
|
|
|
'django.middleware.security.SecurityMiddleware', |
|
|
|
'whitenoise.middleware.WhiteNoiseMiddleware', |
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware', |
|
|
|
'django.middleware.common.CommonMiddleware', |
|
|
|
'django.middleware.csrf.CsrfViewMiddleware', |
|
|
@ -88,6 +90,8 @@ STATICFILES_DIRS = [ |
|
|
|
os.path.join(BASE_DIR, 'server/static'), |
|
|
|
] |
|
|
|
|
|
|
|
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' |
|
|
|
|
|
|
|
WSGI_APPLICATION = 'app.wsgi.application' |
|
|
|
|
|
|
|
AUTHENTICATION_BACKENDS = [ |
|
|
|
|
|
@ -17,4 +17,4 @@ social-auth-app-django==3.1.0 |
|
|
|
social-auth-core[azuread]==3.0.0 |
|
|
|
text-unidecode==1.2 |
|
|
|
tornado==5.0.2 |
|
|
|
whitenoise==3.3.1 |
|
|
|
whitenoise[brotli]==4.1.2 |