I appear to have a bit of a heisenbug. When I have debug = True
everything works perfectly. When I have debug = False I get a 500
error when accessing two views in particular. I'm not sure what makes
those views special or why the app would behave differently depending
on whether debug is True or False (aside from the obvious displaying
of templates vs debugging info such as tracebacks). When I get the 500
Internal server error the following appears in the apache error_log:

[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112] mod_wsgi
(pid=2046): Exception occurred processing WSGI script
'/var/spool/filter/email_archive/django.wsgi'., referer:
http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112] Traceback
(most recent call last):, referer: http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]   File
"/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line
241, in __call__, referer: http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]
response = self.get_response(request), referer:
http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]   File
"/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line
134, in get_response, referer: http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]     return
self.handle_uncaught_exception(request, resolver, exc_info), referer:
http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]   File
"/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line
166, in handle_uncaught_exception, referer:
http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]     return
callback(request, **param_dict), referer:
http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]   File
"/usr/lib/python2.4/site-packages/django/views/defaults.py", line 23,
in server_error, referer: http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]     t =
loader.get_template(template_name) # You need to create a 500.html
template., referer: http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]   File
"/usr/lib/python2.4/site-packages/django/template/loader.py", line 81,
in get_template, referer: http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]     source,
origin = find_template_source(template_name), referer:
http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]   File
"/usr/lib/python2.4/site-packages/django/template/loader.py", line 74,
in find_template_source, referer: http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]     raise
TemplateDoesNotExist, name, referer: http://mx1.mydomain.com/unsure
[Fri Aug 28 00:41:37 2009] [error] [client 216.105.40.112]
TemplateDoesNotExist: 500.html, referer:
http://mx1.mydomain.com/unsure

Any ideas? I am using Django 1.1 on CentOS 5.3 with Apache 2.2.3 in
case it matters.

Thanks

-- 
Tracy Reed
http://tracyreed.org

Attachment: pgpBcZPHuNq9t.pgp
Description: PGP signature

Reply via email to