Hi.

There's no defualt 404 page.

http://code.djangoproject.com/ticket/3335

Hope this helps

On 3/23/07, SlavaSh <[EMAIL PROTECTED]> wrote:
>
> How can I use "default" 404 page in Django ?
> When I disable debugging i just get an error:
>
> Mod_python error: "PythonHandler django.core.handlers.modpython"
>
> Traceback (most recent call last):
>
>   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
> 299, in HandlerDispatch
>     result = object(req)
>
>   File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
> django/core/handlers/modpython.py", line 163, in handler
>     return ModPythonHandler()(req)
>
>   File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
> django/core/handlers/modpython.py", line 136, in __call__
>     response = self.get_response(req.uri, request)
>
>   File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
> django/core/handlers/base.py", line 95, in get_response
>     return callback(request, **param_dict)
>
>   File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
> django/views/defaults.py", line 78, in page_not_found
>     t = loader.get_template(template_name)
>
>   File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
> django/template/loader.py", line 79, in get_template
>     return
> get_template_from_string(*find_template_source(template_name))
>
>   File "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
> django/template/loader.py", line 72, in find_template_source
>     raise TemplateDoesNotExist, name
>
> TemplateDoesNotExist: 404.html
>
> I put the 404.html in my templates root. Now ,as I understan,  it
> should be rendered by djsite.index.views.page_not_found. But when I
> modify the function I cannot see the changes... I cannot pass request
> object to template as well.
>
> Can sombody tell me were is my mistake.
>
> Thanks.
>
>
> >
>

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

Reply via email to