possiblyNothing()
  • Home
Subscribe
Tagged

CherryPy

A collection of 2 posts

CherryPy

Bye bye CherryPy

Well, after struggling and failing to work out how to get static content to load in CherryPy, I gave up with it. Basically, I couldn't get on with the lack of advanced tutorials. After a search for other python web frameworks, I found Flask. The documentation for Flask seems to

David Albone Feb 6, 2012 • 1 min read
CherryPy

CherryPy: Hello world...with numbers

My first CherryPy program... import cherrypy class HelloWorld(object): def index(self): stringToDisplay = "Hello world!" number = 1 stringToDisplay += "The number is {0} ".format(number) number = 14 stringToDisplay += "The number is {0} ".format(number) stringToDisplay += "" return stringToDisplay index.exposed = True cherrypy.quickstart(HelloWorld()) So, the cherrypy.quickstart line mounts an instance

David Albone Feb 2, 2012 • 1 min read
possiblyNothing() © 2022
Powered by Ghost