Re: Multiple DB - Accessing another app's table/model?

2017-07-20 Thread miguel vfx
appA is on project A. appB is on project B. -- As it turns out, migrate names the tables as [app]_[model_name] and thus with different app names on different projects, I was initially accessing the table migrate --database=created. To access the table on another server, match the table names

Re: Multiple DB - Accessing another app's table/model?

2017-07-18 Thread Avraham Serour
import the Model and query it. from appB.models import Table Table.objects.all() On Tue, Jul 18, 2017 at 6:01 PM, miguel vfx wrote: > Hello, > > After following through the documentation, I was able to query data from > another database. However, I was only able to access the table of the same

Multiple DB - Accessing another app's table/model?

2017-07-18 Thread miguel vfx
Hello, After following through the documentation, I was able to query data from another database. However, I was only able to access the table of the same app name. How can I query data from a different app name? For example: appA has a model client_data. It's table name in the app_db database