Skip to content

Instantly share code, notes, and snippets.

@zmanji
Created December 17, 2010 21:07
Show Gist options
  • Save zmanji/745708 to your computer and use it in GitHub Desktop.
Save zmanji/745708 to your computer and use it in GitHub Desktop.
Hello World with Werkzeug
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from werkzeug import Request, Response
@Request.application
def application(request):
return Response("Hello World!")
#if I execute the script directly, it runs this on 8080
if __name__ == "__main__":
from werkzeug import run_simple
run_simple('localhost',8080,application)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment