Hello,

I am getting a strange error. I generate relatively long page and browsers choke on it. It appears that the page is not sent properly. If I wait for some time I'll get something like that at the end of the page:

Using the URLconf defined in abc.settings.urls.main, Django tried these URL patterns, in this order:

  • ^$
  • ^qwerty/
  • ^asdfgh/

The current URL, 'internal_error.html', didn't match any of these.

At that point all relevant data is sent, but instead of end of template (which is a simple static text at that point) I am getting:

 <div id="footercontainer">HTTP/1.1 404 NOT FOUND
Date: Mon, 05 Sep 2005 21:30:14 GMT
Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
Content-Length: 25472
Content-Length: 764
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title>Error 404</title>
<meta name="robots" content="NONE,NOARCHIVE" />
</head><body><h1>Error 404</h1>
<p>Using the URLconf defined in <code>home.settings.urls.main</code>, Django tried these URL patterns, in this order:</p>
<ul><li><code>^$</code></li><li><code>^blog/</code></li><li><code>^lunchbox/</code></li></ul>
<p>The current URL, <code><strong>'internal_error.html'</strong></code>, didn't match any of these.</p>
<hr /><p>You're seeing this error because you have <code>DEBUG = True</code> in your Dj

Red is my text from template. There is nothing after "Dj". I am getting this kind of stuff in Debug mode. Without debug my own 404 page is appended.

It puzzles me because this is the only page, which behaves like that. It appears that at the point of error all processing is already done and static text should be copied. Local copy under "runserver" runs fine and I couldn't reproduce it. But on actual server it is 100% reproducible.

What can be the problem? How to debug it? Any ideas are appreciated.

Thanks,

Eugene

Reply via email to