settings: Drop support for Django < 4.0

- Trixie has Django 4.2.28.

Tests:

- Unit tests pass on Trixie and Forky.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2026-07-22 19:18:34 -07:00 committed by James Valleroy
parent f2e898090c
commit 5013c05d35
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -26,7 +26,6 @@ See: https://docs.djangoproject.com/en/dev/ref/settings/
"""
import django
from django.utils.translation import gettext_lazy as _
ALLOWED_HOSTS = ['*']
@ -240,9 +239,6 @@ TEMPLATES = [
TIME_ZONE = 'UTC'
if django.VERSION <= (4, 0):
USE_L10N = True
USE_TZ = True
# Overridden by configuration setting use_x_forwarded_host