我使用this tutorial安装了Tree.io:
Tree.io安装在/ home / treeio / treeio
中该文件夹属于www-data:www-data with chmod rwxrwxr-x
每当我尝试生成PDF时,都会收到此错误(某些网址因安全原因而被删除):
Environment:
Request Method: GET
Request URL: http://office.mydomain.de/contacts/contact/view/75.pdf
Django Version: 1.5.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.markup',
'django_websocket',
'django.contrib.messages',
'treeio.account',
'treeio.core',
'treeio.core.api',
'treeio.core.search',
'treeio.documents',
'treeio.events',
'treeio.finance',
'treeio.identities',
'treeio.infrastructure',
'treeio.knowledge',
'treeio.messaging',
'treeio.news',
'treeio.projects',
'treeio.reports',
'treeio.sales',
'treeio.services',
'dajaxice',
'dajax',
'coffin',
'captcha',
'south')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'treeio.core.middleware.user.AuthMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'treeio.core.middleware.user.LanguageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'johnny.middleware.LocalStoreClearMiddleware',
'johnny.middleware.QueryCacheMiddleware',
'django.middleware.gzip.GZipMiddleware',
'treeio.core.middleware.user.SSLMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'treeio.core.middleware.chat.ChatAjaxMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'treeio.core.middleware.modules.ModuleDetect',
'minidetector.Middleware',
'treeio.core.middleware.user.CommonMiddleware',
'treeio.core.middleware.user.PopupMiddleware')
Traceback:
File "/home/treeio/treeio/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
121. response = middleware_method(request, e)
File "/home/treeio/treeio/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
115. response = callback(request, *callback_args, **callback_kwargs)
File "/home/treeio/treeio/core/decorators.py" in wrap
124. response = f(request, *args, **kwargs)
File "/home/treeio/treeio/core/decorators.py" in wrap
48. return f(request, *args, **kwargs)
File "/home/treeio/treeio/identities/views.py" in contact_view
403. context_instance=RequestContext(request), response_format=response_format)
File "/home/treeio/treeio/core/rendering.py" in render_to_response
181. f = open(output)
Exception Type: IOError at /contacts/contact/view/75.pdf
Exception Value: [Errno 2] No such file or directory: u'/home/treeio/treeio/static/media/pdfs/174ce9c2e1ac29733db566275c5eb76b'
答案 0 :(得分:0)
我有完全相同的问题 - 在此问题上几个小时都在摸不着头脑,仍无法理解它。
但是我可以在每次更改后将建议提交给sudo service apache2 reload。
电子