How to solve: mysql_exceptions.OperationalError: (1005, Can’t create table (errno: 150))
Feb 02, 2011
This occurs when you have a mixture of MyISAM and INNODB database tables in your database, and you try and run:
python manage.py syncdb
It's due to it trying to create constraints across the two table types. So best to have a single database table type of either INNODB or MyISAM! Change your table types so they match and you should be sorted.