diff --git a/lostplaces/lostplaces/settings.py b/lostplaces/lostplaces/settings.py index f69bacb..bb81be0 100644 --- a/lostplaces/lostplaces/settings.py +++ b/lostplaces/lostplaces/settings.py @@ -4,13 +4,16 @@ """ Django settings for lostplaces project. -Generated by 'django-admin startproject' using Django 3.0.8. +!!! Instead of changing this file, you can override settings in !!! +!!! local_settings.py. That way it won't cause merge conflicts on pull. !!! + +Generated by 'django-admin startproject' using Django 3.1.8. For more information on this file, see -https://docs.djangoproject.com/en/3.0/topics/settings/ +https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see -https://docs.djangoproject.com/en/3.0/ref/settings/ +https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os @@ -21,7 +24,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ +# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'n$(bx8(^)*wz1ygn@-ekt7rl^1km*!_c+fwwjiua8m@-x_rpl0' @@ -79,7 +82,7 @@ WSGI_APPLICATION = 'lostplaces.wsgi.application' # Database -# https://docs.djangoproject.com/en/3.0/ref/settings/#databases +# https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = { 'default': { @@ -90,7 +93,7 @@ DATABASES = { # Password validation -# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators +# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { @@ -109,7 +112,7 @@ AUTH_PASSWORD_VALIDATORS = [ # Internationalization -# https://docs.djangoproject.com/en/3.0/topics/i18n/ +# https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = 'en-us' @@ -123,7 +126,7 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/3.0/howto/static-files/ +# https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static_files') @@ -138,3 +141,11 @@ AUTH_USER_MODEL = 'lostplaces_app.Explorer' LOGIN_URL = reverse_lazy('login') LOGIN_REDIRECT_URL = reverse_lazy('lostplaces_home') LOGOUT_REDIRECT_URL = reverse_lazy('lostplaces_home') + + +# Load and override settings from local_settings.py and don't fail on errors. + +try: + from .local_settings import * +except ImportError: + pass