django-defender/defender
Shen Li 8d4c6840e9
Replace datetime.now with timezone.now (#232)
Use `timezone.now` instead of `datetime.now` when constructing datetime objects. `timezone.now` ensures the timezone-awareness to be consistent with `settings.USE_TZ`
2023-07-13 16:58:47 -04:00
..
management Drop Python2.7 support. 2020-11-23 17:30:46 +01:00
migrations Drop Python2.7 support. 2020-11-23 17:30:46 +01:00
templates Example djangorestframework auth method 2017-03-21 11:03:42 -04:00
__init__.py Bump version 0.9.7 2023-02-27 17:39:23 -05:00
admin.py PEP8 formatting (#147) 2019-11-15 20:22:14 +02:00
apps.py Define AppConfig.default_auto_field to match the initial migration 2021-12-13 21:00:46 +01:00
ci_settings.py Drop Django 2.2 support 2022-04-13 17:46:42 +03:00
config.py Add pragma: no cover comments even though some of this stuff is covered... 2022-11-13 11:09:53 -05:00
connection.py fixing issue #219 don't add redis username by default (#227) 2023-02-23 09:59:52 -05:00
data.py Replace datetime.now with timezone.now (#232) 2023-07-13 16:58:47 -04:00
decorators.py PEP8 formatting (#147) 2019-11-15 20:22:14 +02:00
middleware.py Drop support Django < 2.2 and add support for Django > 3 2020-11-27 16:32:46 +01:00
models.py Drop Python2.7 support. 2020-11-23 17:30:46 +01:00
signals.py Fix failing tests to work with Django (4.0) main dev branch 2021-04-29 06:50:36 -04:00
tasks.py dynamic load celery (#163) 2020-09-04 15:11:19 -04:00
test.py Add support for Python 3.9 2020-11-27 16:32:46 +01:00
test_settings.py Add new config options and update logic/tests to account for them 2022-11-13 11:09:53 -05:00
test_urls.py Drop support Django < 2.2 and add support for Django > 3 2020-11-27 16:32:46 +01:00
tests.py fixing issue #219 don't add redis username by default (#227) 2023-02-23 09:59:52 -05:00
urls.py Drop support Django < 2.2 and add support for Django > 3 2020-11-27 16:32:46 +01:00
utils.py remove_prefix method working same for all python versions 2023-02-21 11:01:20 -05:00
views.py Drop support Django < 2.2 and add support for Django > 3 2020-11-27 16:32:46 +01:00