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
-~----------~----~----~----~------~----~------~--~---

Reply via email to