diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-01-11 00:54:27 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-01-11 00:54:27 +0000 |
| commit | 6c9150d8181de83f341b94059d70ad4f1c04a684 (patch) | |
| tree | 8b9052f90dbbd7d4932d2b818a118805e94b6aae | |
| parent | 71e8d5dd87569dd52f87918cfc32d56751c43b01 (diff) | |
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
| -rw-r--r-- | django/db/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/utils.py b/django/db/utils.py index 0be40daeca..831c63a3dd 100644 --- a/django/db/utils.py +++ b/django/db/utils.py @@ -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) |
