0

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

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!

3
  • 1
    try with app name. python manage.py makemigrations app_name Commented Dec 11, 2021 at 7:25
  • 1
    If specifying the app name doesn't work, can you show the contents of app/models.py? Commented Dec 11, 2021 at 7:38
  • You are my saver ! @Iain Shelvington Commented Dec 11, 2021 at 7:44

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

0

Thx all your support guys! After all the struggle of finding answers on the Internet, I finally made it!!! It is due to the changes in the model, I do make a new class but

> I forgot to inherint from the model.Model This is really helarious and stupid, I have to say.But this make django not able to see my class as a model, which leads to not be able to detect the change. I have to say this is really a newbie exclusive problem.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.