Is there a way to have django log 500 errors to a file, and otherwise
log stderr/stdout to a file somewhere?
The problem I'm having right now is that I'm getting a 500 error
instead of 404s when Debug=False. I get 404s as expected when
Debug=True. I can't for the life of me figure out what is breaking,
since I don't have any error data to go off.
If I create a 500.html template, that displays. If I remove the
500.html template, I get:
--
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/django/core/servers/
basehttp.py", line 277, in run
self.result = application(self.environ, self.start_response)
File "/Library/Python/2.5/site-packages/django/core/servers/
basehttp.py", line 634, in __call__
return self.application(environ, start_response)
File "/Library/Python/2.5/site-packages/django/core/handlers/
wsgi.py", line 239, in __call__
response = self.get_response(request)
File "/Library/Python/2.5/site-packages/django/core/handlers/
base.py", line 128, in get_response
return self.handle_uncaught_exception(request, resolver, exc_info)
File "/Library/Python/2.5/site-packages/django/core/handlers/
base.py", line 160, in handle_uncaught_exception
return callback(request, **param_dict)
File "/Library/Python/2.5/site-packages/django/views/defaults.py",
line 88, in server_error
t = loader.get_template(template_name) # You need to create a
500.html template.
File "/Library/Python/2.5/site-packages/django/template/loader.py",
line 80, in get_template
source, origin = find_template_source(template_name)
File "/Library/Python/2.5/site-packages/django/template/loader.py",
line 73, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: 500.html
--
Even when I explicitly throw a 404 from a view, I still get a 500
error, so I definitely need some way to debug this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---