Skip to content

Commit

Permalink
chore: Update BASE_DIR, STATIC_URL and USE_L10N for Django 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 4, 2024
1 parent 895d3c2 commit 9ddbd2c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cove_project/settings.py
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9ddbd2c

Please sign in to comment.