Django CommandError: App 'polls' has migrations

sneexz picture sneexz · Jun 14, 2014 · Viewed 16.8k times · Source

Trying to follow the tutorial at Django project.

The problem I've come across is that when performing the command: python manage.py sql polls I'm given the error:

CommandError: App 'polls' has migrations. only the sqlmigrate and sqlflush commands can be used when an app has migrations

So far I can't seem to find any guide on the internet, or this website for a solution to the program.

Answer

tingyiy picture tingyiy · Sep 11, 2014

You can either run python manage.py makemigration followed by python manage.py migrate or just delete migrations folder