Thanks, Jason.
Then another question, actually why I am asking this is because I am using 
django-export-import, 
I think it is better to have another title.

This is my router, I've set the foreignkey between A Model from default 
database and EmpAXView from emp database.
django-export-import tells me this:
no such table: main.View_EmpAX
or the relation is not allowed.

so I am thinking it is the problem of allow_relation method. but I don't 
get the concept about how to write it..........

[image: 擷取.PNG]


ANi於 2019年9月10日星期二 UTC+8上午11時54分28秒寫道:
>
> Hi, 
>
> I have my asset table in local db which need to reference to the employee 
> view from another database. 
> But I realized that Django might not allow relations across databases, 
> right?
>
> so does it means that I can only store the employee key as string in the 
> asset table?
> or other way to achieve?
>
> many thanks,
> ANi
>

ANi於 2019年9月10日星期二 UTC+8上午11時54分28秒寫道:
>
> Hi, 
>
> I have my asset table in local db which need to reference to the employee 
> view from another database. 
> But I realized that Django might not allow relations across databases, 
> right?
>
> so does it means that I can only store the employee key as string in the 
> asset table?
> or other way to achieve?
>
> many thanks,
> ANi
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/19635e18-c095-4cf4-93fa-336a07cb9908%40googlegroups.com.

Reply via email to