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. On Nov 16, 6:12 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Are you setting ErrorDocument directives in Apache configuration? > > If you are then disable them and then actual error may not be masked. > > Have you looked in Apache error log for more information? > > Graham > > On Nov 16, 5:53 am, Chuck22 <[EMAIL PROTECTED]> wrote: > > > Here is what I tried. > > > <VirtualHost *:80> > > DocumentRoot "C:/Apache/homedomain" > > ServerName domain.com > > ServerAliaswww.domain.com > > > SetEnv DJANGO_SETTINGS_MODULE homedomain.settings > > SetHandler mod_python > > PythonHandler django.core.handlers.modpython > > PythonPath "['C:/Apache'] + sys.path" > > PythonDebug On > > > </VirtualHost> > > > But I got error: > > > *********************************************************** > > MOD_PYTHON ERROR > > > ProcessId: 1708 > > Interpreter: 'domain.com' > > > ServerName: 'domain.com' > > DocumentRoot: 'C:/Apache/homedomain' > > > URI: '/' > > Location: None > > Directory: None > > Filename: 'C:/Apache/homedomain/' > > PathInfo: '' > > > Phase: 'PythonHandler' > > Handler: 'django.core.handlers.modpython' > > > Traceback (most recent call last): > > > File "C:\Python25\Lib\site-packages\mod_python\importer.py", line > > 1537, in HandlerDispatch > > default=default_handler, arg=req, silent=hlist.silent) > > > File "C:\Python25\Lib\site-packages\mod_python\importer.py", line > > 1229, in _process_target > > result = _execute_target(config, req, object, arg) > > > File "C:\Python25\Lib\site-packages\mod_python\importer.py", line > > 1128, in _execute_target > > result = object(arg) > > > File "C:\Python25\lib\site-packages\django\core\handlers > > \modpython.py", line 222, in handler > > return ModPythonHandler()(req) > > > File "C:\Python25\lib\site-packages\django\core\handlers > > \modpython.py", line 195, in __call__ > > response = self.get_response(request) > > > File "C:\Python25\lib\site-packages\django\core\handlers\base.py", > > line 128, in get_response > > return self.handle_uncaught_exception(request, resolver, exc_info) > > > File "C:\Python25\lib\site-packages\django\core\handlers\base.py", > > line 160, in handle_uncaught_exception > > return callback(request, **param_dict) > > > File "C:\Python25\lib\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 "C:\Python25\lib\site-packages\django\template\loader.py", line > > 80, in get_template > > source, origin = find_template_source(template_name) > > > File "C:\Python25\lib\site-packages\django\template\loader.py", line > > 73, in find_template_source > > raise TemplateDoesNotExist, name > > > TemplateDoesNotExist: 500.html > > > ******************************************************************** > > > I can not find clear answer in the > > doc:http://docs.djangoproject.com/en/dev/howto/deployment/modpython/ > > > Any helps are welcome. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---