Не удается увидеть предварительный просмотр тела ответа в веб-браузере
import codecs
def do_GET_Index(self):
self.set_HTTP_headers(200)
HtmlFile3 = codecs.open('server/entry_template.html', 'r','utf-8')
html_response = HtmlFile3.read()
self.wfile.write(html_reponse)
Я запускаю их на сервере Python IP: 10.1.0.1
В моем Firefox я ввел http://10.1.0.1/ Но я ничего не видел в браузере.??
Мой файл entry_template.html:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Заранее спасибо!!!