Skip to content

Commit

Permalink
Fix USE_L10N deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrlpld committed Oct 29, 2023
1 parent 643b9d7 commit 2d2fbe4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion laces/test/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import os

import dj_database_url
import django


# Build paths inside the project like this: os.path.join(PROJECT_DIR, ...)
Expand Down Expand Up @@ -115,7 +116,9 @@

USE_I18N = True

USE_L10N = True
if django.VERSION < (4, 0):
# Deprecated since 4.0. See also: https://docs.djangoproject.com/en/4.2/ref/settings/#use-l10n
USE_L10N = True

USE_TZ = True

Expand Down

0 comments on commit 2d2fbe4

Please sign in to comment.