Opened 16 years ago
Closed 16 years ago
#10487 closed (fixed)
Refactor database-backend-selection logic into a function
Reported by: | Adrian Holovaty | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
There's a bunch of logic in django/db/__init__.py
that loads the appropriate backend from django.db.backends
based on the DATABASE_ENGINE
setting. We should put this logic into a function so it can be used by other code.
The specific use-case is multiple-database code that needs to load a separate backend for each database connection.
See discussion in this django-developers thread, starting with Yuri Baburov's comment.
Attachments (2)
Change History (3)
by , 16 years ago
by , 16 years ago
Attachment: | conn.2.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
make the patch useful, I am an idiot