Open GoogleCodeExporter opened 8 years ago
yeah sometimes urlfetch return blank page with http status code 200.
and its not only in development machine
i've tried using cache-control : no-cache and max-age=300 for fix this problem,
but nothing help
anyway, sorry for my bad English.
Original comment by judotens
on 20 Dec 2009 at 2:46
Here is the solutions for our problem. The reason for this behavior was the
next code
in the settings.py file:
import sys
reload(sys)
sys.setdefaultencoding("utf8")
Removing this solves the problem, but now we have to add
# -*- coding: utf-8 -*-
to every file where we have Unicode string.
Hope this will help others too.
Original comment by AnthonyLait@gmail.com
on 4 Feb 2010 at 10:43
Original issue reported on code.google.com by
AnthonyLait@gmail.com
on 19 Dec 2009 at 1:30