Good morning,

The production server sends absolutely **no response** when DEBUG is set to 
FALSE.
Browser still waits for a response : no error (neither 404, nor 500) is 
raised. Minutes later, it ends up with a 503 error.

Apache error log reads :
HTTPError: HTTP Error 404: Not Found trying request again in 5 seconds
HTTPError: HTTP Error 404: Not Found trying request again in 10 seconds
HTTPError: HTTP Error 404: Not Found trying request again in 15 seconds
...
I can find not instance of this king of behaviour looking in Google : why 
would apache repeatingly try to connect after a HTTPError ? Is the server 
supposed to set himself up after realizing it has been wrong ??

I have looked after the common issues :

1) ALLOWED_HOST is set correctly. ['*'] leads to the same result.

2) It looks like there is no "ImportError" (I have grossly checked that the 
code is loaded, and I guess it would otherwise raise an ImportError).

3) I do have static files issues : some are not loading as expected, using 
{% load staticfiles %} and {% static ''%}.
I have suspected that my custom 404.html page would loop with a static file 
HTTPError, but it is apparently not the case.

What I can affirm :
The error occurs after : 
* settings.py is loaded.
* models are loaded ;

The error occurs before :
* urls.conf is loaded ;
* views.py is loaded.

Eventually, I do not understand :
* what raises a HTTPError when DEBUG is set to False ;
* why this HTTPError is not caught by Django ;
* Why apache does not simply sends back a 404 signal ?

I'm stuck on a saturday trying to figure out where and what would be this 
error.

Any help would be very appreciated.

Thank you very much.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9f348c04-79e7-43e7-be51-31180d7658e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to