Merge pull request #150 from blaze33/master

Fix RemovedInDjango19Warning and test_database_url_value
This commit is contained in:
Daniel Hahler 2016-03-13 14:33:25 +01:00
commit 407af2e27d
2 changed files with 3 additions and 2 deletions

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

View file

@ -357,6 +357,7 @@ class ValueTests(TestCase):
with env(DATABASE_URL='sqlite://'):
self.assertEqual(value.setup('DATABASE_URL'), {
'default': {
'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.sqlite3',
'HOST': '',
'NAME': ':memory:',