我在生产中有一个django-cms 3.0.2实例。调试已关闭,apache已配置,allowed_hosts已设置。我可以浏览页面,登录管理员等。一切正常,除了一件事:
如果我尝试内联编辑(... /?编辑),那么我会收到500服务器错误。
Apache错误日志是静默的。我的记录器给出了以下错误:
Traceback (most recent call last):
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 137, in get_response
response = response.render()
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/response.py", line 105, in render
self.content = self.rendered_content
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/response.py", line 82, in rendered_content
content = template.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 140, in render
return self._render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 840, in render
bit = self.render_node(node, context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
return node.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/loader_tags.py", line 123, in render
return compiled_parent._render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 840, in render
bit = self.render_node(node, context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
return node.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/classytags/core.py", line 106, in render
return self.render_tag(context, **kwargs)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py", line 76, in render_tag
rendered_contents = nodelist.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 840, in render
bit = self.render_node(node, context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
return node.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/classytags/core.py", line 106, in render
return self.render_tag(context, **kwargs)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com/cms/templatetags/cms_tags.py", line 632, in render_tag
content = render_to_string('cms/toolbar/toolbar.html', context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/loader.py", line 164, in render_to_string
return t.render(Context(dictionary))
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 140, in render
return self._render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 840, in render
bit = self.render_node(node, context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
return node.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/templatetags/i18n.py", line 171, in render
output = self.nodelist.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 840, in render
bit = self.render_node(node, context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
return node.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/defaulttags.py", line 203, in render
nodelist.append(node.render(context))
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/loader_tags.py", line 155, in render
return self.render_template(self.template, context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/loader_tags.py", line 137, in render_template
output = template.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 140, in render
return self._render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 840, in render
bit = self.render_node(node, context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
return node.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/templatetags/i18n.py", line 171, in render
output = self.nodelist.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 840, in render
bit = self.render_node(node, context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 854, in render_node
return node.render(context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 897, in render
return render_value_in_context(output, context)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/template/base.py", line 875, in render_value_in_context
value = force_text(value)
File "/source/ComGo/comgo_regional_de_com/comgo_regional_de_com_venv/lib/python2.7/site-packages/django/utils/encoding.py", line 116, in force_text
raise DjangoUnicodeDecodeError(s, *e.args)
DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128). You passed in <django.utils.functional.__proxy__ object at 0xa795930c> (<class 'django.utils.functional.__proxy__'>)
但是,如果我暂时打开调试,那么我也可以编辑。
所以出了什么问题?有什么想法吗?