python - Django won't detect changes in models -
i outsourcing models packages in order have better overview. models.py
of app main
looks like
from django.db import models models import *
and actual models in models/user.py, ...
so when go prepare migration:
python manage.py makemigrations main
django won't detect changes. why?
i had same problem migrating models. changed import methodology , instead of
from models import *
i tried this
from models.user import user, device, ...
and worked
Comments
Post a Comment