how to display a web page with python? -
how to display a web page with python? -
i learning python @ college. have got stupid question. how create web page python?
i , save test.py
print "hello test \n"; print "\n" print "just testing \n"; when go url same output
print "hello test \n"; print "\n" print "just testing \n"; i confused. doing wrong? hosting hostgator. on web site says this:
#!/usr/bin/python print "content-type: text/html\n\n"; print "<html><head>"; print "<title>cgi test</title>"; print "</head><body>"; print "<p>test page using python</p>"; print "</body></html>"; this gives me same error.
try run on local machine first: making simple web server in python.
python
Comments
Post a Comment