[Tutor] web frameworks
Steven D'Aprano
steve at pearwood.info
Sun Sep 9 22:29:50 CEST 2012
On 10/09/12 05:41, Matthew Ngaha wrote:
> [...] i thought cherrypy, but was told it's not
> nearly as simple as Flask, and since my main focus is learning GUIs, a
> simple web framework will be ideal only to understand how they work.
Understanding *how they work* is not going to be simple. Web frameworks
are big, complex pieces of software.
Being *able to use them* can be simple. Here's the "Hello world" example
for Cherrypy:
import cherrypy
class HelloWorld(object):
def index(self):
return "Hello World!"
index.exposed = True
cherrypy.quickstart(HelloWorld())
I doubt Flask is simpler than that.
--
Steven
More information about the Tutor
mailing list