Django migrate : doesn't create tables Django migrate : doesn't create tables django django

Django migrate : doesn't create tables


python manage.py migrate --fake APPNAME zero

This will make your migration to fake.Now you can run the migrate script

python manage.py migrate APPNAME

Tables will be createdand you solved your problem.. Cheers!!!


From Django docs, Options.managed: "If False, no database table creation or deletion operations will be performed for this model."

And I see you have

   options={        'db_table': 'tblclients',        'managed': False,    },

Try setting managed=True in the model.


In my case, what created the tables was this:

python manage.py migrate --run-syncdb

I am using Django 1.9.6.