Ticket #1161 (closed defect: duplicate)

Opened 3 years ago

Last modified 3 years ago

syncdb --all does not respect multidb routers

Reported by: ash.christopher@… Owned by: andrew
Priority: major Milestone:
Component: commands Version: unknown
Keywords: syncdb multidb Cc:


When running syncdb with the --all flag, it seems to ignore the allow_syncdb() method of the routers.

Database tables that I expected to see only exist on the secondary databases are showing up on the default database.

Change History

comment:1 Changed 3 years ago by andrew

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #370.

comment:2 Changed 3 years ago by vhermecz@…

Wohohoooo. Holy moat!

For the record, to help others, i'd state that:

  1. the --database switch can be used to identify a db different from django default for the operation
  2. south as is today, is lower level than multidb. It does always work on one database. Btw which defaults to default as it is setup in django
Note: See TracTickets for help on using tickets.