Hesam Noorin
daa6235caf
Upgrade to Django 5.2 & Python 3.12 ( #249 )
...
Test / build (3.10, 5) (push) Has been cancelled
Test / build (3.10, 6) (push) Has been cancelled
Test / build (3.10, 7) (push) Has been cancelled
Test / build (3.11, 5) (push) Has been cancelled
Test / build (3.11, 6) (push) Has been cancelled
Test / build (3.11, 7) (push) Has been cancelled
Test / build (3.12, 5) (push) Has been cancelled
Test / build (3.12, 6) (push) Has been cancelled
Test / build (3.12, 7) (push) Has been cancelled
Test / build (3.13, 5) (push) Has been cancelled
Test / build (3.13, 6) (push) Has been cancelled
Test / build (3.13, 7) (push) Has been cancelled
Test / build (3.9, 5) (push) Has been cancelled
Test / build (3.9, 6) (push) Has been cancelled
Test / build (3.9, 7) (push) Has been cancelled
* feat: add support for Django 5.0, 5.1, and 5.2
* fix: resolve Python 3.12 build failures in docs and lint environments
2026-02-01 11:28:21 -05:00
Yurii Parfinenko
289af19ce9
Use redis cache in get_approx_account_lockouts_from_login_attempts ( #250 )
...
Test / build (3.10, 5) (push) Has been cancelled
Test / build (3.10, 6) (push) Has been cancelled
Test / build (3.10, 7) (push) Has been cancelled
Test / build (3.11, 5) (push) Has been cancelled
Test / build (3.11, 6) (push) Has been cancelled
Test / build (3.11, 7) (push) Has been cancelled
Test / build (3.12, 5) (push) Has been cancelled
Test / build (3.12, 6) (push) Has been cancelled
Test / build (3.12, 7) (push) Has been cancelled
Test / build (3.13, 5) (push) Has been cancelled
Test / build (3.13, 6) (push) Has been cancelled
Test / build (3.13, 7) (push) Has been cancelled
Test / build (3.9, 5) (push) Has been cancelled
Test / build (3.9, 6) (push) Has been cancelled
Test / build (3.9, 7) (push) Has been cancelled
* Use redis cache in `get_approx_account_lockouts_from_login_attempts`
* use django_redis in ci
* Add `django_redis` and `redis` to requirements.txt
* Fix an issue detected by tests: clear redis cache upon block reset
* Remove the unnecessary `if`
2026-01-29 12:53:21 -05:00
Attila
37e5dd3123
Fixed circumventing blocking by appending whitespace to username ( #248 )
2025-07-01 11:23:24 -04:00
Ken Cochrane
e420d76463
Update test.yml
...
Updated Github Actions to remove python versions 3.7 and 3.8 and added 3.11, 3.12, 3.13
2025-07-01 11:22:15 -04:00
Ken Cochrane
cc35032a0c
Added missing sphinx theme to requirements file
2024-02-15 17:10:42 -05:00
Ken Cochrane
f2dede8c76
fix docs
2024-02-15 17:07:34 -05:00
Ken Cochrane
4e00500537
fix the docs so they can build
2024-02-15 16:53:49 -05:00
Ken Cochrane
83ad7ce338
Bump 0.9.8
2024-02-15 16:40:06 -05:00
Adam
07555abd29
Improved the "Blocked Logins" page's admin integration ( #239 )
2024-02-14 18:10:03 -05:00
Adam
c290b5a673
Updated app_index.html ( #238 )
2024-02-14 18:07:30 -05:00
Adam
4bea010b65
Prevent the "Reverse for 'defender_blocks_view' not found" error ( #237 )
2024-02-14 18:06:30 -05:00
Ben Lopatin
a972dae7fc
Update DEFENDER_REDIS_NAME documentation ( #235 )
...
Suggesting that this uses the name of the _client_ is misleading and confusing, as that would be the name of a backend (e.g. RedisCache). The referencing code uses DEFENDER_REDIS_NAME to look up the named cache from `CACHES` instead.
2024-01-17 15:33:20 -05:00
Roman Gorbil
1e0aa91952
Fix watch_login with custom username ( #228 )
...
Previously using of custom `get_username` function with disabled IP
lockout caused unhandled exception
Exception("Invalid state requested")
2023-11-09 06:41:49 -06:00
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
marius-mather
f6c73e093b
Update tox.ini with Django 4.2, Python 3.11 ( #233 )
2023-10-03 08:24:30 -04:00
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
Ken Cochrane
2a0469669a
Update test.yml
...
remove pypy from unit tests since it is break for an unknown reason
2023-07-13 16:37:12 -04:00
Ken Cochrane
91dfbde556
Update test.yml
...
Changed pypy from 3.8 to 3.9
2023-07-13 13:51:52 -04:00
Ken Cochrane
cc6145b84e
updated github actions to latest versions
2023-02-27 17:53:31 -05:00
Ken Cochrane
6111eb81da
Bump version 0.9.7
2023-02-27 17:39:23 -05:00
Ken Cochrane
b0f90e690a
fixing issue #219 don't add redis username by default ( #227 )
...
* fixing issue #219 don't add Redis username by default
2023-02-23 09:59:52 -05:00
Dashgin
a4b3f9f332
remove_prefix method working same for all python versions
2023-02-21 11:01:20 -05:00
Dashgin
d90dfa8db7
added test for remove_prefix method
2023-02-21 11:01:20 -05:00
Dashgin
428968b238
Bugfix strip_keys method (returns wrong response method when there is string containing in key_list)
2023-02-21 11:01:20 -05:00
Ken Cochrane
ac36751561
bump version to 0.9.6
2022-11-29 08:21:40 -05:00
djmore4
73d442e31b
More updates after feedback from a colleage
2022-11-13 11:09:53 -05:00
djmore4
3e9d68dd5c
Initial README.rst update after @kencochrane's comment
2022-11-13 11:09:53 -05:00
djmore4
afa2066ba0
Add pragma: no cover comments even though some of this stuff is covered...
2022-11-13 11:09:53 -05:00
djmore4
374971bfc5
Remove incorrect tests
2022-11-13 11:09:53 -05:00
djmore4
5139005106
Fix test name and correct logic in data.py
2022-11-13 11:09:53 -05:00
djmore4
359ee90082
I think we're finally done here
2022-11-13 11:09:53 -05:00
djmore4
b9b067472c
Whoops, they worked I guess. Let's see if they still do or we need more changes. Also improve coverage
2022-11-13 11:09:53 -05:00
djmore4
de1c876b99
Using assertEquals and an exception to test where the logic is going wrong
2022-11-13 11:09:53 -05:00
djmore4
717d44aa7d
Update README further and make another adjustment to the tests
2022-11-13 11:09:53 -05:00
djmore4
1bf9d6e7d1
Refactor once again
2022-11-13 11:09:53 -05:00
djmore4
a280c90bc0
Refactor once again
2022-11-13 11:09:53 -05:00
djmore4
7121db4b0f
another different approach
2022-11-13 11:09:53 -05:00
djmore4
be523281ab
Hopefully this clears up the issues in the tests
2022-11-13 11:09:53 -05:00
djmore4
2d288b247a
Try some new things
2022-11-13 11:09:53 -05:00
djmore4
5db32ed0be
Add importlib-metadata<5.0 to the requirements.txt
2022-11-13 11:09:53 -05:00
djmore4
bbe7687abd
Added changes and fixed small bug
2022-11-13 11:09:53 -05:00
djmore4
177f2ecce8
Add new config options and update logic/tests to account for them
2022-11-13 11:09:53 -05:00
Hasan Ramezani
dffa7c3ba3
Confirm support for Django 4.1
2022-08-27 07:42:29 -04:00
Dashgin
7bb1359514
Change order of defender urls in documentation and example app
2022-06-19 18:47:55 -04:00
Aleksi Häkli
0a5011d450
Version 0.9.5
2022-06-06 13:17:35 +03:00
cbh
bb122f24b9
add username option to redis config
2022-06-06 13:15:55 +03:00
Jona Andersen
0b96c53245
Bump to 0.9.4
2022-05-01 16:09:52 -04:00
Jona Andersen
44ecbee250
Strip port number from IP address in X-Forwarded-For
2022-05-01 14:22:28 -04:00
hashlash
45c4575ccd
Revert PyPy version pinpoint
2022-04-23 08:01:39 -04:00
Aleksi Häkli
b646e10e6c
Version 0.9.3
2022-04-18 15:52:02 +03:00