views:

96

answers:

2

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?

THanks.

+3  A: 

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

Ben
+1  A: 

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 3

Tom Leys