Serving custom Django error pages

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 56
Joined: 01 Nov 2013, 01:50

Serving custom Django error pages

27 Nov 2013, 14:22

Hi,

Currently it seems that Zoo takes control over error pages and shows them instead Django custom ones.

Any idea how let Django handle the errors?

Thanks.

User avatar
Posts: 110
Joined: 07 Mar 2012, 10:22

Re: Serving custom Django error pages

28 Nov 2013, 07:57

Hello!

IIS has settings how to process errors from handlers.
In order to get error responses from django app you must set 'Detailed errors' in Error Pages settings for the website.

Instructions: http://blogs.msdn.com/b/rakkimk/archive/2007/05/25/iis7-how-to-enable-the-detailed-error-messages-for-the-website-while-browsed-from-for-the-client-browsers.aspx

Thank you.

User avatar
Posts: 56
Joined: 01 Nov 2013, 01:50

Re: Serving custom Django error pages

28 Nov 2013, 14:51

Hi,

I tried changing the site error pages feature both to custom and detailed errors, but still see the Zoo ones?

Thanks.

User avatar
Posts: 110
Joined: 07 Mar 2012, 10:22

Re: Serving custom Django error pages

29 Nov 2013, 06:30

Hello,

could you show me the error page you see.
500 error page from Zoo ussually appears when problem out of django.

Thank you.

User avatar
Posts: 56
Joined: 01 Nov 2013, 01:50

Re: Serving custom Django error pages

29 Nov 2013, 12:49

Hi,

These are the settings:
http://take.ms/dsx9M
http://take.ms/n4bQf

And this the error:
http://take.ms/qiwaa

Thanks!

User avatar
Posts: 110
Joined: 07 Mar 2012, 10:22

Re: Serving custom Django error pages

02 Dec 2013, 07:16

Hello,

could you please show full Zoo error page.
Looks like this error is in python code.

Thank you.

User avatar
Posts: 56
Joined: 01 Nov 2013, 01:50

Re: Serving custom Django error pages

02 Dec 2013, 10:40

Hi,

The problem is indeed in Python code - my question is how we show our custom error screens (handled by Django error handling), rather then by Zoo?

Thanks.

User avatar
Posts: 110
Joined: 07 Mar 2012, 10:22

Re: Serving custom Django error pages

02 Dec 2013, 12:12

Zoo pass through any responses from workers (Django app in our case), also with 4xx and 5xx HTTP statues by default.
If your settings.py has
Code: Select all
DEBUG=False
and you has 404.html and 500.html templates, then django error pages will be showed without any settings.

Thank you.

User avatar
Posts: 56
Joined: 01 Nov 2013, 01:50

Re: Serving custom Django error pages

03 Dec 2013, 14:20

Just to clarify, by 404.html and 500.html templates you mean the Django error templates?

Thanks.

User avatar
Posts: 56
Joined: 01 Nov 2013, 01:50

Re: Serving custom Django error pages

04 Dec 2013, 19:56

Thanks, works fine now.

Had to set errors to detailed, and Debug to False indeed :).

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 5 guests