Skip to content

Commit 9ddbd2c

Browse files
committed
chore: Update BASE_DIR, STATIC_URL and USE_L10N for Django 4.2
1 parent 895d3c2 commit 9ddbd2c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cove_project/settings.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Django settings for cove_project project.
33
4-
Generated by 'django-admin startproject' using Django 2.1.3.
4+
Generated by 'django-admin startproject'.
55
66
For more information on this file, see
77
https://docs.djangoproject.com/en/4.2/topics/settings/
@@ -16,7 +16,7 @@
1616
from cove import settings
1717

1818
# Build paths inside the project like this: BASE_DIR / "subdir".
19-
BASE_DIR = Path(__file__).resolve().parents[1]
19+
BASE_DIR = Path(__file__).resolve().parent.parent
2020

2121
# We use the setting to choose whether to show the section about Sentry in the
2222
# terms and conditions
@@ -124,7 +124,6 @@
124124
LANGUAGE_CODE = settings.LANGUAGE_CODE
125125
TIME_ZONE = settings.TIME_ZONE
126126
USE_I18N = settings.USE_I18N
127-
USE_L10N = settings.USE_L10N
128127
USE_TZ = settings.USE_TZ
129128

130129
LANGUAGES = settings.LANGUAGES
@@ -137,7 +136,7 @@
137136
# We can't take STATIC_URL and STATIC_ROOT from cove settings,
138137
# ... otherwise the files appear under the BASE_DIR that is the Cove library install.
139138
# and that doesn't work with our standard Apache setup.
140-
STATIC_URL = "/infrastructure/static/"
139+
STATIC_URL = "infrastructure/static/"
141140
STATIC_ROOT = BASE_DIR / "static"
142141

143142
# Misc

0 commit comments

Comments
 (0)