Sharing models between Django apps

后端 未结 4 1000
你的背包
你的背包 2020-12-16 09:35

I will be brief: to work in the spirit and idea of a Django app, it is ok for an app to import models from inside another app ? Say, a User statistics app will import models

4条回答
  •  一个人的身影
    2020-12-16 10:26

    You cand try better extending the Django User model with inheritance. You will use the django user with custom field added, so you will have the same user for all the apps.

提交回复
热议问题