3

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?

1
  • 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 Commented Oct 15, 2009 at 2:00

1 Answer 1

14

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.