Opened 6 years ago

Closed 6 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 Subhodeep Das)

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 Romeo Dancil, 6 years ago

Type: UncategorizedBug

comment:2 by Subhodeep Das, 6 years ago

Cc: Subhodeep Das added
Component: UncategorizedDatabase layer (models, ORM)
Description: modified (diff)
Has patch: set
Needs tests: set
Owner: changed from nobody to Subhodeep Das
Patch needs improvement: set
Status: newassigned

comment:3 by Claude Paroz, 6 years ago

Resolution: invalid
Status: assignedclosed

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.

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