#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 , 17 years ago
| Triage Stage: | Unreviewed → Ready for checkin |
|---|
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(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.