0

I'm not sure how it works but I need two different models/apps in separated databases. So if I try syncdb --database db1 will get all installed apps into db1. So question is how to get just one app in another db?

Thanks

Goran
  • 6,644
  • 11
  • 34
  • 54

1 Answers1

0

You need to write a database router which will filter models based on application and database in its allow_syncdb method. You cas start from the AuthRouter example in the documentation.

Nicolas Cortot
  • 6,591
  • 34
  • 44