mirror of
https://github.com/django-components/django-components.git
synced 2025-11-25 08:21:20 +00:00
Remove deprecation warning in Django > 3.2.
This commit is contained in:
parent
98ea9405f9
commit
77e4cdc543
1 changed files with 3 additions and 1 deletions
|
|
@ -1,8 +1,10 @@
|
|||
from importlib import import_module
|
||||
|
||||
import django
|
||||
from django.utils.module_loading import autodiscover_modules
|
||||
|
||||
default_app_config = "django_components.apps.ComponentsConfig"
|
||||
if django.VERSION < (3, 2):
|
||||
default_app_config = "django_components.apps.ComponentsConfig"
|
||||
|
||||
|
||||
def autodiscover():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue