mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +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 common.utils import getenv
|
||||
|
||||
@ -99,7 +100,9 @@ AUTH_PASSWORD_VALIDATORS = [
|
||||
LANGUAGE_CODE = 'en-us'
|
||||
TIME_ZONE = getenv('TZ', 'UTC')
|
||||
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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user