django-axes/axes/__init__.py
Nikolai Røed Kristiansen 2e074eebc5 Fix default_app_config deprecation
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
2021-06-05 18:44:11 +03:00

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