Solved: Django makemigrations “No changes detected”

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',
     ....
]

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.

Repair Shop Management System in Dj... x
Repair Shop Management System in Django with Source Code | Free Django Projects with Source Code

Leave a Comment

Sign up to our newsletter!

ADB Commands Android Android Applications Android Build system Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia NDK / Middleware / HAL Operating System Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto Embedded Linux