Reputation: 93
Since the makemigrations command is not available in Django 1.5, I am not sure how to use migrations to sync all django apps. The migrate command does not solve the issue and I instead get a GhostMigrations error and "! These migrations are in the database but not on disk:"
Upvotes: 2
Views: 726
Reputation: 962
I'm assuming you know you're using a 3rd party library to handle migrations in Django 1.5? The library, South, was adapted and adopted as core Django from version 1.7+. But migrations with pre-1.7 Django and South use slightly different syntax from the later core migrations. For example, you use the command manage.py schemamigration
along with flags like --initial
and --auto
, rather than makemigrations
. Official docs here. See this guide for a walkthrough. And see this similar question about GhostMigrations.
Better still, upgrade your Django project to a minimum of 1.7 and then you can use the simpler makemigrations
command.
Upvotes: 4