django-axes/axes/tests
Aleksi Häkli b569cdb991 Deprecate settings.AXES_LOGGER configuration flag
Fixes #634

The Django import system seems to produce errors
in certain configurations and especially when
MIGRATION_MODULES configuration is set globally.

This is most probably caused by misbehaving or cyclic
Python module imports in the Django application
instrumentatation chain that come up when the
MIGRATION_MODULES configuration is altered.

This patch migrates to the standard Python logging system
use and has less overhead and complexity for users as well.

Having a configurable logging prefix does not produce
a lot of benefits and is less flexible than having
all individual module logging configurations accessible
through the module __name__ parameter in Axes.

For example axes.handlers.* or axes.backends.*
are separately configurable in the new scheme
whereas they would have been both bundled under
the AXES_LOGGER log configuration.
2020-09-26 21:44:56 +03:00
..
__init__.py Drop Python 2.7 and Python 3.4 support 2019-02-07 17:28:26 +02:00
base.py Upgrade CI tooling to use automatic code formatting 2019-09-28 19:28:17 +03:00
settings.py Upgrade CI tooling to use automatic code formatting 2019-09-28 19:28:17 +03:00
test_admin.py Add AXES_ENABLE_ADMIN flag to configure showing Axes in admin (#499) 2019-10-09 19:02:45 +03:00
test_attempts.py assertEquals() --> assertEqual() 2020-09-10 21:21:16 +03:00
test_backends.py Upgrade CI tooling to use automatic code formatting 2019-09-28 19:28:17 +03:00
test_checks.py Upgrade CI tooling to use automatic code formatting 2019-09-28 19:28:17 +03:00
test_decorators.py Upgrade CI tooling to use automatic code formatting 2019-09-28 19:28:17 +03:00
test_handlers.py add missing tests; refactor reset_request() 2020-08-21 17:17:57 +03:00
test_helpers.py Add configurable lockout callable 2020-01-08 21:28:14 +02:00
test_logging.py Deprecate settings.AXES_LOGGER configuration flag 2020-09-26 21:44:56 +03:00
test_login.py Split requirements files and bumped black/mypy versions 2020-09-17 15:06:07 +03:00
test_management.py Upgrade CI tooling to use automatic code formatting 2019-09-28 19:28:17 +03:00
test_middleware.py Remove unused imports. 2019-07-09 14:50:09 +02:00
test_models.py Upgrade CI tooling to use automatic code formatting 2019-09-28 19:28:17 +03:00
test_signals.py Add cache handler and refactor tests 2019-02-23 20:19:37 +02:00
test_utils.py black formatting 2020-09-11 11:03:15 +03:00
urls.py Changed url() to path() 2020-09-10 21:21:32 +03:00
urls_empty.py Add a test for AxesProxyHandler.is_admin_site when admin site isn't registered 2020-05-22 13:44:07 +03:00