Re:Tree.io – Open Source Business Management Software
by JesseObrien on Tuesday July 09, 2013 @11:18PM
(#6017251)
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.
[ Parent
| on HN ]
Re:Tree.io – Open Source Business Management Software
by mjhagen on Wednesday July 10, 2013 @08:03AM
(#6018887)
I 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`))')
Re:Tree.io – Open Source Business Management Software
by treeio on Wednesday July 10, 2013 @02:08PM
(#6021699)
I've updated the README to include this.
Re:Tree.io – Open Source Business Management Software
by X4 on Wednesday July 10, 2013 @01:05PM
(#6021142)
Please 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
Re:Tree.io – Open Source Business Management Software
by mjhagen on Wednesday July 10, 2013 @01:15PM
(#6021257)
That would've been easier :) I ended up manually checking the order in which the data in the json file was inserted and fixing that.
Re:Tree.io – Open Source Business Management Software
by Joeboy on Wednesday July 10, 2013 @07:55AM
(#6018841)
It 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.
Re:Tree.io – Open Source Business Management Software
by maikhoepfel on Wednesday July 10, 2013 @06:49AM
(#6018570)
It'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.