django no changes detected

Published on and updated on

How to fix django no changes detected error. There are multiple ways to fix this. See which one works best for you.

If you have ever ran into django no changes detected error. Then you might be aware how frustrating it is solve that. Not because of the complexity but due to confusion.

You've setup all files correctly, you have registered the app in file. You've created the models and you're 100% sure that there are changes that needed to migrate but still django is not able to detect any changes.

Well, if that's the case? Then here are the things that you can do to fix them.

Firstly, make sure you have registered your app in file. To make sure that you installed open file and scroll down a little and see you've added your app in INSTALLED_APPS.

	<your app>,

Second, create migrations again using the app name in the end. Sometimes, when we've several apps in our django project django may not able to pick those changes correctly however you can create any specific app's migrations by explicitly using the app name.

python makemigrations <app name>

python migrate <app name>

If still it's not working then uninstall using django pip uninstall django and then reinstall it pip install django.

And lastly, create migrations and apply them.