On Sat, 2008-11-15 at 19:16 -0800, Chuck22 wrote:
> I did not use ErrorDocument directives in my httpd.config.
> 
> Here is my Apache error log:
> 
> [Sun Nov 16 03:00:12 2008] [error] [client ] mod_python (pid=3296,
> interpreter='domain.com', phase='PythonHandler',
> handler='django.core.handlers.modpython'): Application error
> [Sun Nov 16 03:00:12 2008] [error] [client ] ServerName: 'domain.com'
> [Sun Nov 16 03:00:12 2008] [error] [client] DocumentRoot: 'C:/Apache/
> homedomain'
> [Sun Nov 16 03:00:12 2008] [error] [client ] URI: '/'
> [Sun Nov 16 03:00:12 2008] [error] [client ] Location: None
> [Sun Nov 16 03:00:12 2008] [error] [client ] Directory: None
> [Sun Nov 16 03:00:12 2008] [error] [client] Filename: 'C:/Apache/
> homedomain/'
> [Sun Nov 16 03:00:12 2008] [error] [client] PathInfo: ''
> [Sun Nov 16 03:00:12 2008] [error] [client ] Traceback (most recent
> call last):
> [Sun Nov 16 03:00:12 2008] [error] [client]   File "C:\\Python25\\Lib\
> \site-packages\\mod_python\\importer.py", line 1537, in HandlerDispatch
> \n    default=default_handler, arg=req, silent=hlist.silent)
> [Sun Nov 16 03:00:12 2008] [error] [client]   File "C:\\Python25\\Lib\
> \site-packages\\mod_python\\importer.py", line 1229, in _process_target
> \n    result = _execute_target(config, req, object, arg)
> [Sun Nov 16 03:00:12 2008] [error] [client ]   File "C:\\Python25\\Lib\
> \site-packages\\mod_python\\importer.py", line 1128, in _execute_target
> \n    result = object(arg)
> [Sun Nov 16 03:00:12 2008] [error] [client]   File "C:\\Python25\\lib\
> \site-packages\\django\\core\\handlers\\modpython.py", line 222, in
> handler\n    return ModPythonHandler()(req)
> [Sun Nov 16 03:00:12 2008] [error] [client]   File "C:\\Python25\\lib\
> \site-packages\\django\\core\\handlers\\modpython.py", line 195, in
> __call__\n    response = self.get_response(request)
> [Sun Nov 16 03:00:12 2008] [error] [client]   File "C:\\Python25\\lib\
> \site-packages\\django\\core\\handlers\\base.py", line 128, in
> get_response\n    return self.handle_uncaught_exception(request,
> resolver, exc_info)
> [Sun Nov 16 03:00:12 2008] [error] [client]   File "C:\\Python25\\lib\
> \site-packages\\django\\core\\handlers\\base.py", line 160, in
> handle_uncaught_exception\n    return callback(request, **param_dict)
> [Sun Nov 16 03:00:12 2008] [error] [client]   File "C:\\Python25\\lib\
> \site-packages\\django\\views\\defaults.py", line 88, in server_error
> \n    t = loader.get_template(template_name) # You need to create a
> 500.html template.
> [Sun Nov 16 03:00:12 2008] [error] [client]   File "C:\\Python25\\lib\
> \site-packages\\django\\template\\loader.py", line 80, in get_template
> \n    source, origin = find_template_source(template_name)
> [Sun Nov 16 03:00:12 2008] [error] [client ]   File "C:\\Python25\\lib\
> \site-packages\\django\\template\\loader.py", line 73, in
> find_template_source\n    raise TemplateDoesNotExist, name
> [Sun Nov 16 03:00:12 2008] [error] [client ] TemplateDoesNotExist:
> 500.html
> 
> 
> It seems an internal applicaiton error - 500 error. But I don't know
> where is the problem. Can you see what's wrong with my Virtual Host
> setup? Or tell me what is the correct way to set up Apache Virtual
> Host for Django.

Why are you assuming this is a problem with your VirtualHost
configuration in apache? We can see from the traceback that Django code
is being run, which means that Apache is correctly handing off
processing of the request to Django and Django isn't able to return a
valid response. So the real question is why is Django raising some kind
of uncaught exception.

One simple way to resolve that is to set DEBUG=True in your settings
file and reload the page, which will then give you a bunch of
information.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to