I've read many answers to this question often stating to simply run makemigrations
in some other ways. But to me, the problem was in the Meta
subclass of models.
I have an app config that says label = <app name>
(in the apps.py
file, beside models.py
, views.py
etc). If by any chance your meta class doesn't have the same label as the app label (for instance because you are splitting one too big app into multiple ones), no changes are detected (and no helpful error message whatsoever). So in my model class I have now:
class ModelClassName(models.Model):
class Meta:
app_label = '<app name>' # <-- this label was wrong before.
field_name = models.FloatField()
...
Running Django 1.10 here.