Django database migrations are gives no "No migrations to apply." error

Hi I am having issues trying to migrate my django database.
I have a database that definitely cant be cleared/removed, which is what most solutions recommend.
I have tried all the following command-sets:

python makemigrations
python migrate --run-syncdb
python makemigrations django_project 
python migrate django_project
python migrate
python makemigrations && python migrate
python makemigrations django_project
python migrate --fake-initial
python migrate

I cleared the migrations folder everytime.
Every set resulted in the same response:

08:59 ~/GluoApi $ python makemigrations && python migrate
Migrations for 'django_project':
    - Create model Blacklist
    - Create model Like
    - Create model Post
    - Create model PostReaction
    - Create model Profile
    - Create model Token
    - Create model ReportUser
    - Create model ReportPost
    - Add field reports to profile
    - Add field requests to profile
    - Add field user to profile
    - Create model PostReactionReport
    - Create model PostReactionLike
    - Add field likes to postreaction
    - Add field post to postreaction
    - Add field poster to postreaction
    - Add field reports to postreaction
    - Add field likes to post
    - Add field poster to post
    - Add field reports to post
    - Add field post to like
    - Add field user to like
    - Create model GiftLink
    - Create model AuthToken
    - Create model Article
Operations to perform:
  Apply all migrations: admin, auth, authtoken, contenttypes, django_project, sessions, sites
Running migrations:
  No migrations to apply.
  Your models in app(s): 'django_project' have changes that are not yet reflected in a migration, and so won't be applied.
  Run ' makemigrations' to make new migrations, and then re-run ' migrate' to apply them.

Have you cleared the django_migrations table in your database too ?

This table contains probably a tuple ('django_project', '0001_initial') which tell to Django that the initial migration has been already applied, so the migrate command tell you there is not migrations to apply.

But you tell, you can't remove the database, so if you just want to apply migration without make the operations, you can call: makemigrations && migrate --fake, for applying the migrations without really change the database

Back to Top