mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Use importlib.import_module if needed.
This commit is contained in:
parent
e0e12b1b9f
commit
21d1712143
1 changed files with 4 additions and 1 deletions
|
|
@ -3,7 +3,10 @@ import sys
|
|||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.utils import six
|
||||
from django.utils.importlib import import_module
|
||||
try:
|
||||
from django.utils.importlib import import_module
|
||||
except ImportError:
|
||||
from importlib import import_module
|
||||
|
||||
|
||||
def isuppercase(name):
|
||||
|
|
|
|||
Loading…
Reference in a new issue