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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -