mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Fixed RemovedInDjango19Warning
It's better to try the new import method first because in Django<1.9 the old method is still available and will raise a RemovedInDjango19Warning that we could have avoided.
This commit is contained in:
parent
d66ecc6d6e
commit
aba5100e4f
1 changed files with 2 additions and 2 deletions
|
|
@ -4,9 +4,9 @@ import sys
|
|||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.utils import six
|
||||
try:
|
||||
from django.utils.importlib import import_module
|
||||
except ImportError:
|
||||
from importlib import import_module
|
||||
except ImportError:
|
||||
from django.utils.importlib import import_module
|
||||
|
||||
|
||||
def isuppercase(name):
|
||||
|
|
|
|||
Loading…
Reference in a new issue