mirror of https://github.com/django/django.git
Fixed #12558 -- Improved error handling when processing DATABASES setting. Thanks to Oliver Beattie for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
71e8d5dd87
commit
6c9150d818
|
@ -56,7 +56,7 @@ class ConnectionHandler(object):
|
|||
except KeyError:
|
||||
raise ConnectionDoesNotExist("The connection %s doesn't exist" % alias)
|
||||
conn.setdefault('ENGINE', 'django.db.backends.dummy')
|
||||
if conn['ENGINE'] == 'django.db.backends.':
|
||||
if conn['ENGINE'] == 'django.db.backends.' or not conn['ENGINE']:
|
||||
conn['ENGINE'] = 'django.db.backends.dummy'
|
||||
conn.setdefault('OPTIONS', {})
|
||||
conn.setdefault('TEST_CHARSET', None)
|
||||
|
|
Loading…
Reference in New Issue