Hello, In part 3 of the Django Tutorial, "Write a 404 (page not found) view" it says-
"It finds it by looking for the variable handler404 in your root URLconf"
In my settings.py- ROOT_URLCONF='mysite.urls'
In mysite/urls.py, what syntax do I need to add? Where do I reference 'handler404'? The tutorial is not clear. I've set Debug=False and put a 404.html file in my templates root directory. But I get a Server Error (500) View returned.
asked 13 May '13, 14:08
Well, it looks like it is because I am not generating a 404 error.., it is a 500 error but I can't understand the traceback when I go to http://127.0.0.1:8000/polls/5/-
... File "C:\Users\Chris\mysite\polls\urls.py", line 7, in >module> from your application import views ImportError: No module named yourapplication ... "GET /polls/5/HTTP/1.1" 500 27
and my urls.py is-
which version of django are you following in tutorial and what is your django version
answered 13 May '13, 15:19