Opened 7 years ago

Closed 7 years ago

Last modified 5 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 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: UI/UX:


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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 7 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(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 5 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

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