|
Well, after some trial and error, I managed to get tree.io running on Webfaction. Still have one bug hanging around though that I'm not sure what to do with... when I click on the contacts, documents, or knowledge tab on the top of the page, it tries to load the page and then just says "something went wrong". Every other tab works fine though. My error logs say... ~/treeio/.ve/lib/python2.7/site-packages/coffin/common.py:59: UserWarning: Cannot translate loader: django.template.loaders.eggs.load_template_source warnings.warn('Cannot translate loader: %s' % loader) Is there something I can do to fix this? Seems to be related to the coffin module. |
|
You seem to have an incorrect version of Django: make sure you use make && make install. We actually apply a small patch to Django (it's being a bit over-protective since 1.3 with model forms). If you've run "manage.py update_ve" after doing "make", you'll need to apply the patch by doing:
Alternatively, you can rebuild all the modules:
I've also noticed an additional reference to tree_app/lib/python2.7 in the python path. If the above doesn't help, could you do the following and post the result:
|
|
My logs are full of that, but it doesn't seem to affect what the performance, that relates to the way that the coffin templating system works, which I would guess will be fixed in coffin down the line. The "Something went wrong" comes back with AJAX calls that return a 500 (internal server error) response. If you set turn Debugging on: Search for DEBUG in your settings.py file and change it from False to True, and then do whatever it is that makes your error and see what the issue is. The google chrome browser lets you see what's going on by right clicking the page, choose "Inspect element" and then click on the Network tab on the panel at the bottom. Take an action that causes your problem and look for the AJAX call with the 500 response (it should be red)... That will let you see the error page that is being returned and is much more descriptive. Once you're working, don't forget to turn DEBUG back to False! JT |
|
Alex, I went directly to the contacts page with DEBUG=True and this is what showed up. The other problematic pages are similar (Cannot assign None: "KnowledgeItem.folder" does not allow null values. and Cannot assign None: "Document.folder" does not allow null values.) ValueError at /contacts/ Cannot assign None: "Contact.contact_type" does not allow null values. Request Method: GET Request URL: http://(removed).com/contacts/ Django Version: 1.3
Exception Type: ValueError
Exception Value: Cannot assign None: "Contact.contact_type" does not allow null values. Exception Location: /home/jhreimer/webapps/tree_app/treeio/.ve/lib/python2.7/site-packages/django/db/models/fields/related.py in set, line 327
Python Executable: /usr/bin/python
Python Version: 2.7.1
Python Path: ['/home/(removed)/webapps/tree_app/lib/python2.7', '/home/(removed)/webapps/tree_app/treeio/.ve/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg', '/home/(removed)/lib/python2.7/virtualenv-1.7-py2.7.egg', '/home/(removed)/lib/python2.7', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages/PIL', '/home/(removed)/webapps/tree_app/treeio/.ve/lib/python2.7/site-packages', '/home/(removed)/webapps/tree_app/treeio/.ve/lib/python2.7/site-packages/PIL', '/home/(removed)/webapps/tree_app', '/home/(removed)/webapps/tree_app/treeio'] Server time: Mon, 12 Dec 2011 16:18:20 -0700 |
|
Hi all, This is my first post, and know this is an old post, but I get the same error when doing a clean install of tree.io on OS X. The error I get is:
|
Looks like a Coffin/Jinja2 issue... Can you set DEBUG=True in settings.py and then go directly to yourdomain.com/contacts/ or /knowledge/ etc. and paste the output here?