Opened 7 years ago
Closed 7 years ago
#29566 closed Bug (invalid)
Error On Multiple Django Databases
| Reported by: | Romeo Dancil | Owned by: | Subhodeep Das |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 2.0 |
| Severity: | Normal | Keywords: | Multiple Database |
| Cc: | Subhodeep Das | Triage Stage: | Unreviewed |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | yes | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I was trying to make my Django connect to multiple databases I follow this instruction here https://docs.djangoproject.com/en/2.0/topics/db/multi-db/ but I always keep on having this error below Using the routers that the documentation suggested.
TypeError: db_for_write() missing 1 required positional argument: 'model'
Every time I try to migrate.
Can anyone help me with it?
Change History (3)
comment:1 by , 7 years ago
| Type: | Uncategorized → Bug |
|---|
comment:2 by , 7 years ago
| Cc: | added |
|---|---|
| Component: | Uncategorized → Database layer (models, ORM) |
| Description: | modified (diff) |
| Has patch: | set |
| Needs tests: | set |
| Owner: | changed from to |
| Patch needs improvement: | set |
| Status: | new → assigned |
comment:3 by , 7 years ago
| Resolution: | → invalid |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Sorry, but the ticket system is not meant as a support channel, see https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
Reopen if you can show that Django is at fault.