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
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
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
3 matches
Mail list logo