Database error: Table 'test_XXX.django_content_type' doesn't exist

909 views
Skip to first unread message

girish shabadimath

unread,
Oct 28, 2010, 2:27:49 AM10/28/10
to django...@googlegroups.com
Hi all,

im using django 1.2
there are two databases involved in my project (default and XYZ (used only for migration))

i use a consistant MySQL storage type for all apps, all models (including m2m).
This is done by registering a post-syncdb  signal in management.py file which converts all tables to innodb.

(Description of management.py magic is at http://code.djangoproject.com/wiki/Signals)


i wrote few tests for one of my application,

when i run ./manage.py test following error occurs:

DatabaseError: (1146, "Table 'test_XXX.django_content_type' doesn't exist")

any clues?

--
Girish M S

Frank Wiles

unread,
Oct 28, 2010, 2:44:16 PM10/28/10
to django...@googlegroups.com

I wager if you do a syncdb to another database (as test is doing for
you) you'll find that the table 'django_content_type' does indeed not
exist. Possibly because you don't have 'django.contrib.contenttypes'
in INSTALLED_APPS.

--
Frank Wiles
Revolution Systems | http://www.revsys.com/
fr...@revsys.com   | (800) 647-6298

Reply all
Reply to author
Forward
0 new messages