File tree Expand file tree Collapse file tree 5 files changed +9
-1
lines changed Expand file tree Collapse file tree 5 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ web : gunicorn C-Compiler-Code-Generation-CI-CD.wsgi
Original file line number Diff line number Diff line change 99For the full list of settings and their values, see
1010https://docs.djangoproject.com/en/3.2/ref/settings/
1111"""
12-
12+ import os
1313from pathlib import Path
1414
1515# Build paths inside the project like this: BASE_DIR / 'subdir'.
4242
4343MIDDLEWARE = [
4444 'django.middleware.security.SecurityMiddleware' ,
45+ 'whitenoise.middleware.WhiteNoiseMiddleware' ,
4546 'django.contrib.sessions.middleware.SessionMiddleware' ,
4647 'django.middleware.common.CommonMiddleware' ,
4748 'django.middleware.csrf.CsrfViewMiddleware' ,
118119# Static files (CSS, JavaScript, Images)
119120# https://docs.djangoproject.com/en/3.2/howto/static-files/
120121
122+ STATIC_ROOT = os .path .join (BASE_DIR , 'staticfiles' )
121123STATIC_URL = '/static/'
124+ STATICFILES_DIRS = [os .path .join (BASE_DIR , "static" )]
122125
126+ STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
123127# Default primary key field type
124128# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
125129
Original file line number Diff line number Diff line change 11asgiref == 3.4.1
22coverage == 5.5
33Django == 3.2.5
4+ gunicorn == 20.1.0
45pytz == 2021.1
56sqlparse == 0.4.1
67typing-extensions == 3.10.0.0
8+ whitenoise == 5.3.0
Original file line number Diff line number Diff line change 1+ Python 3.9.6
You can’t perform that action at this time.
0 commit comments