Strange error in Deploying with Apache + WSGI and Debug = False
Can anyone here help me fix the error. I am deploying Askbot using Apache + WSGI. Everything works well until I set Debug = False.
If there's any tips to solve that it would be very helpful. I think I may be configuring it wrong.
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] return http.HttpResponseServerError(t.render(Context({})))
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] File "/home/ubuntu/deploy-ipst-collaborative-learning/deployenv/local/lib/python2.7/site-packages/Coffin-0.3.7-py2.7.egg/coffin/template/__init__.py", line 55, in render
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] return super(Template, self).render(**context)
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] File "/home/ubuntu/deploy-ipst-collaborative-learning/deployenv/local/lib/python2.7/site-packages/Jinja2-2.7-py2.7.egg/jinja2/environment.py", line 969, in render
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] return self.environment.handle_exception(exc_info, True)
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] File "/home/ubuntu/deploy-ipst-collaborative-learning/deployenv/local/lib/python2.7/site-packages/Jinja2-2.7-py2.7.egg/jinja2/environment.py", line 742, in handle_exception
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] reraise(exc_type, exc_value, tb)
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] File "/home/ubuntu/deploy-ipst-collaborative-learning/askbot/templates/500.html", line 1, in top-level template code
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] {% extends "two_column_body.html" %}
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] File "/home/ubuntu/deploy-ipst-collaborative-learning/askbot/templates/two_column_body.html", line 1, in top-level template code
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] {% extends "base.html" %}
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] File "/home/ubuntu/deploy-ipst-collaborative-learning/askbot/templates/base.html", line 5, in top-level template code
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title>
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] File "/home/ubuntu/deploy-ipst-collaborative-learning/deployenv/local/lib/python2.7/site-packages/Jinja2-2.7-py2.7.egg/jinja2/environment.py", line 397, in getattr
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] return getattr(obj, attribute)
[Fri Jun 28 11:12:40 2013] [error] [client 203.131.208.114] UndefinedError: 'settings' is undefined
Comments
I encounter the same error. Fresh install of askbot. Django 1.4.2 Postgres 8.4 Python 2.6
I have same issue with Askbot 0.7.48 and django 1.5.1
I have the same, there is no errors when DEBUG=True Did anybody managed to solve this issue?