开发者

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

开发者 https://www.devze.com 2022-12-08 08:00 出处:网络
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开发者_如何学Go to create a custom 404 page?The default 404 ha

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开发者_如何学Go to create a custom 404 page?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消