From 4b298f870572972b32a48e0d6509fff2f7994919 Mon Sep 17 00:00:00 2001 From: Stephen G Tuggy Date: Tue, 2 Jul 2024 03:57:52 -0700 Subject: [PATCH 1/2] requirements.txt: Update Django to 4.2.13 --- app/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 8a91788fe337f35921890e95dd331ecf7469f220 Mon Sep 17 00:00:00 2001 From: Stephen G Tuggy Date: Tue, 2 Jul 2024 03:58:18 -0700 Subject: [PATCH 2/2] settings.py: Django-4.2-related changes --- app/jobHistorySite/settings.py | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) 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')