No migrations to apply

Alwerdani picture Alwerdani · Sep 7, 2014 · Viewed 12k times · Source
$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 !

Answer

Norman8054 picture Norman8054 · Sep 7, 2014

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.