When we are adding new model or modifying previous one, we have to inform the project about the changes we are doing using “python manage.py makemigrations” command. After we added new model in our application, we just run the command “python manage.py makemigrations” and we got a message like, No changes detected it means, it didn’t picked the modification to inform to project. Solution : Make sure your app is added to INSTALLED_APP in settings.py, for example, the name of our django project is “testproject and name of “application” is “testapp”, then make sure we have following line in “test_project/settings.py” $ vim test_project/settings.py INSTALLED_APPS = [ 'testproject.testapp', ....

Command line execution

Terminalbash
python manage.py makemigrations” command. After we added new model in our application, we just run the command “python manage.py makemigrations” and we got a message like, No changes detected it means, it didn’t picked the modification to inform to project. Solution : Make sure your app is added to INSTALLED_APP in settings.py, for example, the name of our django project is “testproject and name of “application” is “testapp”, then make sure we have following line in “test_project/settings.py” $ vim test_project/settings.py INSTALLED_APPS = [     'testproject.testapp',      .... ] Now, run the “makemigrations” by adding “name of the app” at the end as, $ python manage.py makemigrations testapp At the end, make sure the newly added model is properly configured as, $ python manage.py migrate and now if you start the server, then we should have the newly created model getting reflected in dashboard.

Risk level: destructive. Review the command before running it.

Implementation details

] Now, run the “makemigrations” by adding “name of the app” at the end as, $ python manage.py makemigrations testapp At the end, make sure the newly added model is properly configured as, $ python manage.py migrate and now if you start the server, then we should have the newly created model getting reflected in dashboard.

Gotchas and common issues

  • Permission checks - verify user access rights and sudo privileges before executing system-level operations.

  • Environment configuration - double-check path variables and dependency versions to prevent runtime failures.

  • Backup safeguards - maintain configuration backups before applying system or database modifications.

Following these steps ensures clean configuration and reliable execution for solved: django makemigrations “no changes detected”.