Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @cherrypy.expose
- def index(self):
- cherrypy.log("Whoa! Someone visited my site!")
- with open("index.html", "r") as file:
- index_contents = ""
- index_contents = file.read()
- return index_contents
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement