Hi! I have a problem.
Apache returns 500 error like this
[Mon Nov 07 11:34:37 2011] [error] [client 123.123.123.123] Premature
end of script headers: django.wsgi

I create simple view for tests on server.
@render_to('dummy.html')
def test_permature(request):
    return {}

dummy.html is empty by default.

if dummy.html contains the template tag which renders a url by {% url
%} tag, then server returns 500 and in log "Premature end of script
headers"
dummy.html
------------------------------------------
{% load ecko_theme_tags %}
{% cart_products_counter %}

cart_products_counter.html
-----------------------------------------
{% url cart %}

If dummy.html contains only {% url %} tag, then all works fine.
dummy.html
------------------------------------------
{% load ecko_theme_tags %}
{% url cart %}
And more, if add to dummy cart_products_counter tag, then all works
fine UNTIL NEXT RESTART of apache. The server returns 500 and in log
"Premature end of script headers" after restart.

In what may be the reason?
How can it be solve?

hosting enviroment
Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze3 with Suhosin-Patch
mod_wsgi/3.3 Python/2.6.6 Phusion_Passenger/3.0.8 mod_perl/2.0.4 Perl/
v5.10.1

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to