Skip to content

Commit

Permalink
examples.settings: remove deprecated USE_L10N
Browse files Browse the repository at this point in the history
Setting default value changes from False (Django 3.2) to True (Django 4.0).
Setting deprecated in Django 4.0
  • Loading branch information
sandre35 committed Jan 22, 2024
1 parent 4fdafba commit 5a55217
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# This software is distributed under the two-clause BSD license.
# Copyright (c) The django-ldapdb project

import django
import ldap

DEBUG = True
Expand Down Expand Up @@ -47,7 +48,8 @@

# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale
USE_L10N = True
if django.VERSION[0] == 3:
USE_L10N = True

USE_TZ = True

Expand Down

0 comments on commit 5a55217

Please sign in to comment.