Created
August 14, 2010 18:18
-
-
Save gregglind/524549 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf8 -*- | |
import web | |
urls = ( | |
'/test/mío','Blah', | |
'/test/mio','Blah', | |
) | |
app = web.application(urls, globals()) | |
class Blah(object): | |
def GET(self): | |
web.header("Content-Type","text/html; charset=utf-8") | |
return "<html><body>BLAH!</body></html>" | |
if __name__ == "__main__": | |
web.config.debug = True | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment