Student J
Student J

Reputation: 203

How do you read an html template in a python script?

I have a file called html_form.py that contains the html I want to use for the output of my cgi script in python, hw.py. However, I'm not sure how to call it in hw.py. Advice? Thanks

Upvotes: 0

Views: 171

Answers (1)

Trendy
Trendy

Reputation: 470

In hw.py write:

import html_form

http://docs.python.org/2/tutorial/modules.html

Upvotes: 1

Related Questions