Permalink
Browse files

Import samples from internal git repo

  • Loading branch information...
0 parents commit f888f38fc5d35c10f528a4224cf6c13eba5cd787 Sridhar Ratnakumar committed May 19, 2011
Showing with 24 additions and 0 deletions.
  1. +9 −0 README.md
  2. +1 −0 requirements.txt
  3. +14 −0 wsgi.py
@@ -0,0 +1,9 @@
+# A demo of interactive Werkzeug debugger
+
+## Local development
+
+ pypm install -r requirements.txt
+
+## Deploying to Stackato
+
+ stackato push werkzeug-debugger
@@ -0,0 +1 @@
+werkzeug
14 wsgi.py
@@ -0,0 +1,14 @@
+from werkzeug.wrappers import Request, Response
+from werkzeug.debug import DebuggedApplication
+
+@Request.application
+def application(request):
+ 1/0 # <-- expected; hover and click the terminal icon to the right
+ return Response('Hello World!')
+
+application = DebuggedApplication(application, evalex=True)
+
+
+if __name__ == '__main__':
+ from werkzeug.serving import run_simple
+ run_simple('localhost', 4000, application)

0 comments on commit f888f38

Please sign in to comment.