DatabaseError: no such table: django_content_type

316 views
Skip to first unread message

Leandro Moreno

unread,
Sep 3, 2014, 4:29:52 PM9/3/14
to django-d...@googlegroups.com
Hello list! I'm trying to run my tests and I have these error.

In a config.py file I'm doing this:

from django.contrib.contenttypes.models import ContentType
ContentType.objects.get_for_model(model=MyModel)


And when I run the tests, this error apears, and only with tests.

I'm including contrib.contenttypes to my INSTALLED_APPS. I did syncdb and migrate. So, I cannot see where the problem is.

Tim Graham

unread,
Sep 3, 2014, 5:27:47 PM9/3/14
to django-d...@googlegroups.com
This is django-developers, the list for discussing the development of Django itself. For questions about using Django, please use the django-users mailing list. It's also helpful to include a traceback of the error.
Reply all
Reply to author
Forward
0 new messages