mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Django 3.2 automatically detects AppConfig and therefore this setting is no longer required. https://docs.djangoproject.com/en/dev/releases/3.2/#automatic-appconfig-discovery
8 lines
189 B
Python
8 lines
189 B
Python
from pkg_resources import get_distribution
|
|
|
|
import django
|
|
|
|
if django.VERSION < (3, 2):
|
|
default_app_config = "axes.apps.AppConfig"
|
|
|
|
__version__ = get_distribution("django-axes").version
|