From 817fe4bea9f303a2822d0856f6de91c772fef29c Mon Sep 17 00:00:00 2001 From: Stephen G Tuggy Date: Sun, 30 Jun 2024 17:25:27 -0700 Subject: [PATCH] settings.py: Update documentation URLs; add DEFAULT_AUTO_FIELD setting --- app/jobHistorySite/settings.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/jobHistorySite/settings.py b/app/jobHistorySite/settings.py index a890180..ede600c 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/2.2/topics/settings/ +https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see -https://docs.djangoproject.com/en/2.2/ref/settings/ +https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os @@ -33,7 +33,7 @@ # Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ +# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = env('JOB_HISTORY_SECRET_KEY') @@ -93,7 +93,7 @@ # Database -# https://docs.djangoproject.com/en/2.2/ref/settings/#databases +# https://docs.djangoproject.com/en/3.2/ref/settings/#databases DATABASES = { 'default': { @@ -108,7 +108,7 @@ # Password validation -# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators +# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { @@ -127,7 +127,7 @@ # Internationalization -# https://docs.djangoproject.com/en/2.2/topics/i18n/ +# https://docs.djangoproject.com/en/3.2/topics/i18n/ LANGUAGE_CODE = 'en-us' @@ -141,7 +141,7 @@ # Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/2.2/howto/static-files/ +# https://docs.djangoproject.com/en/3.2/howto/static-files/ STATICFILES_STORAGE='whitenoise.storage.CompressedManifestStaticFilesStorage' STATIC_URL = env('JOB_HISTORY_STATIC_URL') @@ -149,3 +149,5 @@ LOGIN_URL = reverse_lazy('login') LOGIN_REDIRECT_URL = reverse_lazy('jobHistory:index') + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'