mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-03-16 21:30:23 +00:00
Fix Django 3.2 default_app_config deprecation (#198)
* Fix ImportError from setup.py
This commit is contained in:
parent
76d4ab4c8d
commit
53c99af2c4
1 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,10 @@
|
|||
VERSION = (2, 4, 2)
|
||||
__version__ = ".".join(map(str, VERSION))
|
||||
|
||||
default_app_config = "cachalot.apps.CachalotConfig"
|
||||
try:
|
||||
from django import VERSION as DJANGO_VERSION
|
||||
|
||||
if DJANGO_VERSION < (3, 2):
|
||||
default_app_config = "cachalot.apps.CachalotConfig"
|
||||
except ImportError:
|
||||
default_app_config = "cachalot.apps.CachalotConfig"
|
||||
|
|
|
|||
Loading…
Reference in a new issue