#2877 closed defect (duplicate)
Cannot specify another database in Meta.db_table
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | |
Severity: | normal | 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
I cannot specify a table in another database using "class Meta: db_table = 'other_db.table'", what I can do if I directly work with MySQL.
Change History (2)
comment:1 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 18 years ago
Why I should use several connections? In MySQL, I can use several internal databases within one connection.
Note:
See TracTickets
for help on using tickets.
Check out the multi-db branch of Django, which supports connecting to as many different databases as you like:
http://code.djangoproject.com/browser/django/branches/multiple-db-support
Documentation is at the MultipleDatabaseSupport wiki page.
Dupe of #1142.