Skip to content

Commit 914d3cc

Browse files
committed
Fix USE_TZ RemovedInDjango50Warning
Fix this warning, which appears in both the docs build and Django 4.0 tests: ``` /.../python3.8/site-packages/django/conf/__init__.py:199: RemovedInDjango50Warning: The default value of USE_TZ will change from False to True in Django 5.0. Set USE_TZ to False in your project settings if you want to keep the current default behavior. ```
1 parent 5ad50f7 commit 914d3cc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

example/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
}
5858
]
5959

60+
USE_TZ = True
61+
6062
WSGI_APPLICATION = "example.wsgi.application"
6163

6264

tests/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
},
7070
]
7171

72+
USE_TZ = True
73+
7274
STATIC_ROOT = os.path.join(BASE_DIR, "tests", "static")
7375

7476
STATIC_URL = "/static/"

0 commit comments

Comments
 (0)