Are you sure your index view is being executed?
It just seems that django can't find a URLconf rule defined for your view.
[]s
Ronaldo.
It's clear that some code is being executed in processing the 404
without debug that *isn't* executed when you process a 404 with debug
set. Now you just have to find out what ...
regards
Steve
I guess that you get 500 because there is an unhandled exception. Can
you see
a traceback in your error log?
What happens if you write "return django.http.HttpResponse('OK')"
instead of raise Http404?
Thomas
janedenone schrieb:
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
Hi,
it must be some kind of unhandled exception, but I fail to see where
it might occur. I now boiled down the app to a single URL pattern and
a single view:
Hi Karen,
I did that, but the message was never sent to me.
Anyway, when I create a new project with a single app, containing
nothing but a single view which raises a Http404, along with a
urlpattern which refers to that view – the 500 template is still
displayed when I request the URL.
This must be easily reproducible on any machine using the following
code:
# urls.py:
urlpatterns = patterns('myproject.myapp.views',
(r'^test/$', 'test'),
)
# views.py:
def test(request):
raise Http404
I see them in the apache error log. I use mod_wsgi.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/