How do I fix this Django error "Exception Type: OperationalError Exception Value: no such table?"
Using django version 1.10, I had to perform:
python manage.py migrate --run-syncdb
- Did you run
./manage.py syncdb
to create all your tables? - Do you have
django.contrib.contenttypes
in your INSTALLED_APPS insettings.py
?
As an unlikely third option:
- Does your project/app use the Django app "South"? If so, you would also need to run
./manage.py migrate
to make sure all tables get created.
Forgetting any of those items would cause the table(s) for ContentType not to be generated.