阅读背景:

Django将一个应用的模型应用到其他应用程序的模型中。

来源:互联网 

Salam and hi,

萨拉姆,你好,

I am using django and breaking two parts of project in two apps. However there is a reference field of one table as foreign key of other in terms of db. So how can I use one app's model primary key as foreign key of another app's model? And if is not possible then should I just make single app of all such apps. I am actually thinking apps as different modules/components of project, may be I will be adding some apps in future. I am using django and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: