[Changeset] r12204 - django/trunk/django/db

0 views
Skip to first unread message

nor...@djangoproject.com

unread,
Jan 10, 2010, 7:54:28 PM1/10/10
to django-...@googlegroups.com
Author: russellm
Date: 2010-01-10 18:54:27 -0600 (Sun, 10 Jan 2010)
New Revision: 12204

Modified:
django/trunk/django/db/utils.py
Log:
Fixed #12558 -- Improved error handling when processing DATABASES setting. Thanks to Oliver Beattie for the report and patch.

Modified: django/trunk/django/db/utils.py
===================================================================
--- django/trunk/django/db/utils.py 2010-01-10 21:58:01 UTC (rev 12203)
+++ django/trunk/django/db/utils.py 2010-01-11 00:54:27 UTC (rev 12204)
@@ -56,7 +56,7 @@
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)

Reply all
Reply to author
Forward
0 new messages