Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

makemigrations can't detect change in django

I know there are a lot of similar questions: but I will describe my problem as simply as I can.

This is the app I want to migrate.
enter image description here

This is my setting.py
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

This is what happens when I type in makemigrations(after I add a field in my model)
enter image description here

This is what happens when I type in showmigrations(after I add a field in my model)
enter image description here

I have reinstall django using pip, I have created new app , I have created new project,new venv, I even have reinstall python itself, all same story.
I suspect my django source code has been corrupted, but when I install django using pip, it use file that is downloaded before instead of download new file. Trust me, I have tried all the way a newbie could possibly tried, could someone tell me how to redownload django itself or someone who is way smarter than me know what’s going on right now.
Thx!

>Solution :

You should try

python manage.py migrate
python manage.py makemigrations app

Apart from that, if your application works as it should, it shouldn’t worry you if Django finds no migrations to apply.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading