pythondjangodjango-syncdb

No migrations to apply


$python manage.py syncdb
Operations to perform:
  Apply all migrations: admin, contenttypes, auth, sessions
Running migrations:
  No migrations to apply.
  Your models have changes that are not yet reflected in a migration, and so won't be applied.
  Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.

the error printscreen

enter image description here

i don't know what the problem !


Solution

  • As the command line output says the problem is that you changed the models. The solution is to run python manage.py makemigrations and then python manage.py migrate.