The built-in Django development server handles 404s and 500s, but when
you deploy onto mod_python or mod_wsgi, you need a 404.html and a
500.html.

On Oct 2, 4:52 am, Gustavo Senise <gustavosen...@gmail.com> wrote:
> Hey Mak,
>
> I understand that. The point is that locally the app is running fine! So how
> can I understand whats wrong?
>
> 2009/10/2 Maksymus007 <maksymus...@gmail.com>
>
>
>
>
>
> > On Fri, Oct 2, 2009 at 1:46 PM, gustavo <gustavosen...@gmail.com> wrote:
>
> > > Hello fellows,
>
> > > I have been developing a little blog app as described in
> > >http://www.aprendendodjango.com, what means Learning Django. It this
> > > very interesting.
>
> > > But I've got problems when I tryed to deploy. It seems everything is
> > > ok, but the log server is telling me that it is searching for a
> > > 500.html template, so the app crashes sending me these messages:
>
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34] mod_wsgi
> > > (pid=15934): Exception occurred processing WSGI script '/home/edah/
> > > public_html/meu_blog/index.wsgi'.
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34] Traceback
> > > (most recent call last):
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]   File "/
> > > usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line
> > > 239, in __call__
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]
> > > response = self.get_response(request)
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]   File "/
> > > usr/lib/python2.6/site-packages/django/core/handlers/base.py", line
> > > 128, in get_response
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]     return
> > > self.handle_uncaught_exception(request, resolver, exc_info)
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]   File "/
> > > usr/lib/python2.6/site-packages/django/core/handlers/base.py", line
> > > 160, in handle_uncaught_exception
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]     return
> > > callback(request, **param_dict)
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]   File "/
> > > usr/lib/python2.6/site-packages/django/views/defaults.py", line 23, in
> > > server_error
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]     t =
> > > loader.get_template(template_name) # You need to create a 500.html
> > > template.
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]   File "/
> > > usr/lib/python2.6/site-packages/django/template/loader.py", line 80,
> > > in get_template
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]     source,
> > > origin = find_template_source(template_name)
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]   File "/
> > > usr/lib/python2.6/site-packages/django/template/loader.py", line 73,
> > > in find_template_source
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]     raise
> > > TemplateDoesNotExist, name
> > > [Wed Sep 30 16:27:00 2009] [error] [client 200.198.212.34]
> > > TemplateDoesNotExist: 500.html
>
> > > Well, I've played a little with my settings and index.wsgi, but got no
> > > good results. Someone please help me!?
>
> > > Thanks a lot!
>
> > "# You need to create a 500.html
> > template."
>
> --
> Gustavo
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to