4 ms·
Can anyone get the install process to actually work? I got to 'python manage.py installdb' and it failed because that command doesn't exist in manage.py. I trie
by JesseObrien 13y ago
Can anyone get the install process to actually work? I got to 'python manage.py installdb' and it failed because that command doesn't exist in manage.py. I tried a bunch of the other commands from manage.py help as well and still nothing.
- maikhoepfel 13y agoIt's a Django project, so the command might be "syncdb" instead. If that doesn't do the trick, they'll have installed a custom management command that doesn't seem to get picked up. Grep the source code for installdb then.
- deleted 13y ago[deleted]
- Joeboy 13y agoIt sounds as if maybe your pythonpath isn't set up correctly. Try 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.
- mjhagen 13y agoI had to install MySQL-python, but now I'm stuck on a foreign key conflict when importing the initial data.json file. 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`))')
- X4 13y agoPlease have a look at the issue tracker, there is an easy fix. Just run: mysql -u username -p -D database < sql/mysql-treeio-current.sql
- mjhagen 13y agoThat would've been easier :) I ended up manually checking the order in which the data in the json file was inserted and fixing that.
- X4 13y agohttps://github.com/treeio/treeio/issues/39 https://github.com/treeio/treeio/issues/39
- treeio 13y agoI've updated the README to include this.