python - common models in django -
i new in django , don't know how deal sharing models problem. simplicity assume have 2 apps: a1, a2 , 1 model m1. a1 , a2 using same model m1. can set m1 within a1 , a2 not idea. how deal ?
define m1
in app a1
or a2
, utilize in app models.py
:
from a1.models import m1
python django
No comments:
Post a Comment