mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 21:46:44 +00:00
Check the Django version before using a removed setting
This commit is contained in:
parent
aa27e1c22b
commit
6c10a1da5b
@ -1,3 +1,4 @@
|
|||||||
|
from django import VERSION as DJANGO_VERSION
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from common.utils import getenv
|
from common.utils import getenv
|
||||||
|
|
||||||
@ -99,7 +100,9 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||||||
LANGUAGE_CODE = 'en-us'
|
LANGUAGE_CODE = 'en-us'
|
||||||
TIME_ZONE = getenv('TZ', 'UTC')
|
TIME_ZONE = getenv('TZ', 'UTC')
|
||||||
USE_I18N = True
|
USE_I18N = True
|
||||||
USE_L10N = True
|
# Removed in Django 5.0
|
||||||
|
if DJANGO_VERSION[0:3] < (5, 0, 0):
|
||||||
|
USE_L10N = True
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user