How to create a custom 404 page for my Django / Apache?

I know that you are using .htaccess in the root directory of document in standard apache. What if I use Django? Can someone give me step by step how to create a custom 404 page?

THANKS.

+3
source share
1 answer

The 404 handler defaults to 404.html. You can edit this if you don’t need any fantasy or you can override the 404 handler by setting the handler404 view - here

+14
source

Source: https://habr.com/ru/post/1720136/


All Articles