django-defender/defender
dkr-sahar ba548fa9c3
Use redis parse_url method instead of a custom one (#234)
* Use redis parse_url method instead of a custom one

The custom method defined here has no real advantage

- the redis lib implements it better and have support for many use cases
- maintaining this implementation is error-prone and unnecessary work for overworked open-source contributors :)

Especially, when you want to pass query parameters here, they are not supported (for eg a custom certificate authority)

* remove test about url parsing
* remove unused imports
2023-10-12 13:20:58 -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 Use redis parse_url method instead of a custom one (#234) 2023-10-12 13:20:58 -04: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 Use redis parse_url method instead of a custom one (#234) 2023-10-12 13:20:58 -04: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