Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#10833 closed (fixed)

django.db.load_backend loads the backend from settings.DATABASE_ENGINE regardless of what's passed to it

Reported by: Alex Gaynor Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


-        return import_module('.base', 'django.db.backends.%s' % settings.DATABASE_ENGINE)
+        return import_module('.base', 'django.db.backends.%s' % backend_name)

Change History (3)

comment:1 Changed 11 years ago by Alex Gaynor

Triage Stage: UnreviewedReady for checkin

comment:2 Changed 11 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [10560]) 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.

comment:3 Changed 9 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top