by JesseObrien · 13y ago · 0 comments
IntegrityError: (1452, 'Cannot add or update a child row: a foreign key constraint fails (`treeiodb`.`core_user`, CONSTRAINT `user_id_refs_id_4bf8d20` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))')export PYTHONPATH=$PYTHONPATH:/path/to/treeio:/path/to/
(ie add the project path and its parent to PYTHONPATH), then try manage.py installdb again.
NB This is guesswork based on prior django experience, I haven't actually tried installing it.