I know that you use .htaccess in the document-root directory in standard Apache.
What if I use Django? Can someone give me step by step how to create a custom 404 page?
-
In general the Django documentation is really great. Have a look at the Django Book for a great intoduction to Django. They cover the 404 page in chapter 3Tom Leys– Tom Leys2009-10-15 02:00:41 +00:00Commented Oct 15, 2009 at 2:00
Add a comment
|
1 Answer
The default 404 handler calls 404.html . You could edit that if you don't need anything fancy or can override the 404 handler by setting the handler404 view -- more here