Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (12 sloc) 0.484 kb
fe1fce6 @srid use PORT and requirements.txt
srid authored
1 import os
f888f38 @srid Import samples from internal git repo
srid authored
2 from werkzeug.wrappers import Request, Response
3 from werkzeug.debug import DebuggedApplication
4
5 @Request.application
6 def application(request):
7 1/0 # <-- expected; hover and click the terminal icon to the right
8 return Response('Hello World!')
9
10 application = DebuggedApplication(application, evalex=True)
11
12
13 if __name__ == '__main__':
14 from werkzeug.serving import run_simple
fe1fce6 @srid use PORT and requirements.txt
srid authored
15 port = int(os.environ.get("PORT", 5000))
16 run_simple('0.0.0.0', port, application)
Something went wrong with that request. Please try again.