Skip to content

Commit 79a8d40

Browse files
committedJul 28, 2023
whitenoise
1 parent af9f958 commit 79a8d40

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎hms_api/settings.py

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747
MIDDLEWARE = [
4848
'django.middleware.security.SecurityMiddleware',
49+
'whitenoise.middleware.WhiteNoiseMiddleware',
4950
'django.contrib.sessions.middleware.SessionMiddleware',
5051
'django.middleware.common.CommonMiddleware',
5152
'django.middleware.csrf.CsrfViewMiddleware',
@@ -145,3 +146,5 @@
145146
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=60),
146147
'REFRESH_TOKEN_LIFETIME': timedelta(days=30),
147148
}
149+
150+
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'

‎requirements.txt

68 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)