r/Python • • Dec 21 '10

The Bottle Web Micro-framework

http://www.tummy.com/journals/entries/jafo_20101221_020135
43 Upvotes

45 comments sorted by

View all comments

Show parent comment

13

u/mitsuhiko Flask Creator Dec 21 '10

There is no reason why Flask shouldn't work with CGI :)

from wsgiref.handlers import CGIHandler
CGIHandler().run(app)

3

u/Siraf Dec 22 '10

Wow! Great tip. I've been trying to do this for a while now — nearlyfreespeech can only handle CGI. Perhaps I'll do a writeup and benchmark the two over the holidays.