Skip to content

Commit

Permalink
Added USE_TZ test setting. (#1217)
Browse files Browse the repository at this point in the history
Default for this changes in Django 5.0 to True, so given that it's
been missing for ages, we could just leave it off, but it raises a
deprecation warning in earlier versions (the 4.2 LTS being the issue) 
which leads to difficulties when
running with the `-W error` flag, to debug other issues.
  • Loading branch information
carltongibson committed Jan 11, 2024
1 parent 64af1e6 commit d1d4ee2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compressor/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@
PASSWORD_HASHERS = ("django.contrib.auth.hashers.UnsaltedMD5PasswordHasher",)

MIDDLEWARE_CLASSES = []

USE_TZ = True

0 comments on commit d1d4ee2

Please sign in to comment.