Opened 16 years ago

Closed 16 years ago

Last modified 13 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: dev
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

Description

http://code.djangoproject.com/browser/django/trunk/django/db/__init__.py#L17

-        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 by Alex Gaynor, 16 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Russell Keith-Magee, 16 years ago

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 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

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