Я использую Python 2.7 - как я могу преобразовать вывод urllib.urlopen
в строку?
data = urllib.urlopen('http://www.google.com').read()
test = "testone"
return render_to_response('home.html', locals())
home.html:
{{data}}
<br/>
{{test}}
Только 'testone'отображается в браузере.