How do I fix this Django error "Exception Type: OperationalError Exception Value: no such table?"

user319045 picture user319045 · May 16, 2010 · Viewed 14.7k times · Source

I've finally installed all the requirements (so i think!) of a Django project, and I'm trying to get a local install running on my Mac (OSX 10.4).

I'm getting the following error:

Blockquote OperationalError at /
no such table: django_content_type
Request Method: GET
Request URL: http://127.0.0.1:8000/
Exception Type: OperationalError
Exception Value:
no such table: django_content_type
Exception Location: /Users/Diesel/Desktop/DjangoWork/pinax-ev/lib/python2.5/site-packages/django/db/backends/sqlite3/base.py
in execute, line 170
Python Executable: /Users/Diesel/Desktop/DjangoWork/pinax-ev/bin/python
Python Version: 2.5.1

Answer

Carl Bosch picture Carl Bosch · Jun 17, 2017

Using django version 1.10, I had to perform:

python manage.py migrate --run-syncdb