add whitenoise for static file hosting
This commit is contained in:
@@ -50,6 +50,7 @@ MIDDLEWARE = [
|
|||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
|
'whitenoise.middleware.WhiteNoiseMiddleware',
|
||||||
]
|
]
|
||||||
|
|
||||||
ROOT_URLCONF = 'benchcoachproject.urls'
|
ROOT_URLCONF = 'benchcoachproject.urls'
|
||||||
|
|||||||
@@ -17,3 +17,4 @@ zipp==3.5.0
|
|||||||
psycopg2
|
psycopg2
|
||||||
api-client
|
api-client
|
||||||
gunicorn
|
gunicorn
|
||||||
|
whitenoise
|
||||||
Reference in New Issue
Block a user