diff --git a/app/jobHistorySite/settings.py b/app/jobHistorySite/settings.py index 1a8e204..52ae852 100644 --- a/app/jobHistorySite/settings.py +++ b/app/jobHistorySite/settings.py @@ -4,10 +4,10 @@ Generated by 'django-admin startproject' using Django 2.1.4. For more information on this file, see -https://docs.djangoproject.com/en/3.2/topics/settings/ +https://docs.djangoproject.com/en/4.2/topics/settings/ For the full list of settings and their values, see -https://docs.djangoproject.com/en/3.2/ref/settings/ +https://docs.djangoproject.com/en/4.2/ref/settings/ """ import os @@ -29,7 +29,7 @@ # Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ +# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = env('JOB_HISTORY_SECRET_KEY') @@ -89,7 +89,7 @@ # Database -# https://docs.djangoproject.com/en/3.2/ref/settings/#databases +# https://docs.djangoproject.com/en/4.2/ref/settings/#databases DATABASES = { 'default': { @@ -100,7 +100,7 @@ # Password validation -# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators +# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { @@ -127,7 +127,7 @@ # Internationalization -# https://docs.djangoproject.com/en/3.2/topics/i18n/ +# https://docs.djangoproject.com/en/4.2/topics/i18n/ LANGUAGE_CODE = 'en-us' @@ -139,8 +139,15 @@ # Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/3.2/howto/static-files/ -STATICFILES_STORAGE='whitenoise.storage.CompressedManifestStaticFilesStorage' +# https://docs.djangoproject.com/en/4.2/howto/static-files/ +STORAGES = { + "default": { + "BACKEND": "django.core.files.storage.FileSystemStorage", + }, + "staticfiles": { + "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage", + }, +} STATIC_URL = env('JOB_HISTORY_STATIC_URL') STATIC_ROOT = env('JOB_HISTORY_STATIC_ROOT') diff --git a/app/requirements.txt b/app/requirements.txt index 36195d8..a4d5a1e 100644 --- a/app/requirements.txt +++ b/app/requirements.txt @@ -2,7 +2,7 @@ asgiref==3.8.1 astroid==3.2.2 colorama==0.4.6 dill==0.3.8 -Django==4.1.13 +Django==4.2.13 django-environ==0.11.2 isort==5.13.2 lazy-object-proxy==1.10.0