Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #12558 -- Improved error handling when processing DATABASES set…

…ting. Thanks to Oliver Beattie for the report and patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6c9150d8181de83f341b94059d70ad4f1c04a684 1 parent 71e8d5d
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/
2  django/db/
@@ -56,7 +56,7 @@ def ensure_defaults(self, alias):
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)

0 comments on commit 6c9150d

Please sign in to comment.
Something went wrong with that request. Please try again.