From 9ddbd2c7a94de1d1d3ee9de0fd06a42f74bad523 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 3 Sep 2024 21:40:05 -0400 Subject: [PATCH] chore: Update BASE_DIR, STATIC_URL and USE_L10N for Django 4.2 --- cove_project/settings.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cove_project/settings.py b/cove_project/settings.py index 49df426..1dfe21f 100644 --- a/cove_project/settings.py +++ b/cove_project/settings.py @@ -1,7 +1,7 @@ """ Django settings for cove_project project. -Generated by 'django-admin startproject' using Django 2.1.3. +Generated by 'django-admin startproject'. For more information on this file, see https://docs.djangoproject.com/en/4.2/topics/settings/ @@ -16,7 +16,7 @@ from cove import settings # Build paths inside the project like this: BASE_DIR / "subdir". -BASE_DIR = Path(__file__).resolve().parents[1] +BASE_DIR = Path(__file__).resolve().parent.parent # We use the setting to choose whether to show the section about Sentry in the # terms and conditions @@ -124,7 +124,6 @@ LANGUAGE_CODE = settings.LANGUAGE_CODE TIME_ZONE = settings.TIME_ZONE USE_I18N = settings.USE_I18N -USE_L10N = settings.USE_L10N USE_TZ = settings.USE_TZ LANGUAGES = settings.LANGUAGES @@ -137,7 +136,7 @@ # We can't take STATIC_URL and STATIC_ROOT from cove settings, # ... otherwise the files appear under the BASE_DIR that is the Cove library install. # and that doesn't work with our standard Apache setup. -STATIC_URL = "/infrastructure/static/" +STATIC_URL = "infrastructure/static/" STATIC_ROOT = BASE_DIR / "static" # Misc