We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
USE_TZ = True
1 parent 150f671 commit 84beadeCopy full SHA for 84beade
settings.py
@@ -1,3 +1,4 @@
1
+import django
2
import dj_database_url
3
4
DEBUG = True
@@ -51,6 +52,12 @@
51
52
'django.contrib.auth.middleware.AuthenticationMiddleware',
53
]
54
55
+# See: https://github.com/psycopg/psycopg2/issues/1293
56
+if django.VERSION >= (3, 1):
57
+ USE_TZ = True
58
+ USE_I18N = True
59
+ TIME_ZONE = 'UTC'
60
+
61
# set to a lower number than the default, since
62
# we want the tests to be fast, default is 100
63
LOCALIZED_FIELDS_MAX_RETRIES = 3
0 commit comments