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:
Maxime Rouyrre 2016-03-11 11:02:26 +01:00
parent d66ecc6d6e
commit aba5100e4f

View file

@ -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):