Opened 6 years ago

Last modified 6 years ago

#29566 closed Bug

Error On Multiple Django Databases — at Version 2

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 (2)

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
Note: See TracTickets for help on using tickets.
Back to Top