When I took over this project it was in Django 1.5.  I've since 
incrementally upgraded it and am now running successfully in 1.8.3.  There 
are also no tests written.  I've decided to write a few tests after adding 
some new views today.

when i run ./manage.py test apps.public_web, i'm given the option to delete 
the test_ database, which I accept. Then "django.db.utils.IntegrityError: 
(1215, 'Cannot add foreign key constraint')" is thrown.  When i execute 
SHOW ENGINE INNODB STATUS in my database (AWS RDB):

"2015-08-21 19:43:53 2ab145254700 Error in foreign key constraint of table 
ngv_tests/#sql-996_5247:
 FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`):
Cannot resolve table name close to:
 (`id`)"


Any suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2c128e9c-060c-4f94-912b-f9770a597449%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to