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

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -