'' No migrations to apply' after Django migration

I made a new app called 'contact' which I added to installed_apps, but I can't create a table in the SQLite database!

Django version = 3.1

python manage.py makemigrations contact

No changes detected in app 'contact'

then for : python manage.py migrate contact

Operations to perform: Apply all migrations: (none) Running migrations: No migrations to apply.

I have tried many solutions proposed by members here but None worked

like checking "init" file existed in migrations folder and it's empty or commands like these :

python manage.py migrate --fake contact zero

Operations to perform: Unapply all migrations: contact Running migrations: No migrations to apply.

python manage.py migrate contact --fake-initial

Operations to perform: Apply all migrations: (none) Running migrations: No migrations to apply.



Solution 1:[1]

Try not to use the name of your app.

Eg.

python manage.py makemigrations

python manage.py migrate

If don't work. You can do something more risky. Go to the directory of your project. Take the database to another folder. Make the same above commands.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 southernegro