[Fixed]-Makemigrations not detecting changes after moving models to a modelsdirectory

1👍

I have a django project that is structured this way, and I had to add this in my modelsdir/__init__.py file:

from .model1 import *
from .model2 import *

I also didn’t keep the original models.py file in my top-level app folder.

This is on Django 1.10/1.11 and Python 3.

Leave a comment