Nginx error page using django master page

Posted by user835199 on Server Fault See other posts from Server Fault or by user835199
Published on 2014-06-10T07:05:53Z Indexed on 2014/06/10 9:26 UTC
Read the original article Hit count: 145

Filed under:
|

I am using python django to develop a web app and using nginx and gunicorn as servers. I need to define nginx error page (for error codes like 500, 501 etc), but i want to keep the layout same as that in other site pages. For site pages, i use the include functionality of django but in this case, since django won't preprocess the page, i need to create a pure html page. Is there a way to reuse the master page that i created in django for creating this error page?

© Server Fault or respective owner

Related posts about nginx

Related posts about django