Browse files

Fixed #10833 -- Corrected load_backend so that it actually loads the …

…requested backend, rather than always loading settings.DATABASE_BACKEND. Thanks to Alex Gaynor for the report and fix.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
freakboy3742 committed Apr 16, 2009
1 parent bd8afb1 commit f0d75dbe3e7f3715130921214330f088134159cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/
@@ -14,7 +14,7 @@ def load_backend(backend_name):
# Most of the time, the database backend will be one of the official
# backends that ships with Django, so look there first.
- return import_module('.base', 'django.db.backends.%s' % settings.DATABASE_ENGINE)
+ return import_module('.base', 'django.db.backends.%s' % backend_name)
except ImportError, e:
# If the import failed, we might be looking for a database backend
# distributed external to Django. So we'll try that next.

0 comments on commit f0d75db

Please sign in to comment.