Multiple Database Setup

2019-10-30 Thread Rajat Chopra
I wish to create a project with 2 apps. Each app will have its own database - one for payments and another for statements. I have created a set of models within the models.py for the payments app and another set of models inside within the models.py for the statements app. When I run the com

Multiple Database Setup problem !?

2018-10-30 Thread David Lubomirov
Hello, In my project I have 3 applications, and I'm trying to split them across 2 databases. More specifically 2 of the apps and Django "auth" application should work with the first database, and the last application should remain in the second database. These are the DB settings: DATABASE_RO

Re: Multiple Database Setup

2019-10-30 Thread DANIEL URBANO DE LA RUA
https://docs.djangoproject.com/en/2.2/topics/db/multi-db/ On Wed, 30 Oct 2019, 14:39 Rajat Chopra, wrote: > I wish to create a project with 2 apps. Each app will have its own > database - one for payments and another for statements. > > I have created a set of models within the models.py for th

Re: Multiple Database Setup problem !?

2018-11-02 Thread 'Tom Evans' via Django users
Hi David Your router isn't configured correctly. This applies to all the allow_foo() methods, but see allow_migrate [1] as an example: Determine if the migration operation is allowed to run on the database with alias db. Return True if the operation should run, False if it shouldn’t run, or Non