Windows 7
Python 2.7.3
Django 1.5
python manage.py runserver
I am following the tutorial as available at 'https://docs.djangoproject.com/en/1.5/intro/tutorial03/'
I got as far as the 'Write a 404 (page not found) view' before things got wierd.
I have tried to work out how to make a custom 404 view. However, I am not sure:
A. Where exactly the custom 404.html file should reside. Should it be in my project directory tree or in my Django directory tree. My project directory tree looks like this,
1> mysite
2> - mysite
3> - polls
4> - templates
5> - polls
6> - templates
7> - admin
Currently the 404.html is @ 6>
B. What modifications have to be made where? I understand that a handler404 and a handler500 need to be set in the 'root' url conf. I have a url.py residing @ 2> and 3> (see tree above). Assuming that 2> is the correct place I assume that the syntax is as follows,
handler404 = 'templates.404'
handler500 = 'templates.500'
What else needs to be set, where?