diff options
| author | Steve Piercy <web@stevepiercy.com> | 2017-10-22 10:02:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-22 10:02:21 +0200 |
| commit | 58831496b8db4e590fadfd41dae733dc1a2e6fc5 (patch) | |
| tree | f650edf32ad5f79f94792fe00d63273fec6ab58f /docs/quick_tutorial/hello_world | |
| parent | cc341a6b2913d2ecef56a3ed3fe18f3557041202 (diff) | |
| parent | 30bf7300404c1259d6558d58713933a5a067eeee (diff) | |
| download | pyramid-58831496b8db4e590fadfd41dae733dc1a2e6fc5.tar.gz pyramid-58831496b8db4e590fadfd41dae733dc1a2e6fc5.tar.bz2 pyramid-58831496b8db4e590fadfd41dae733dc1a2e6fc5.zip | |
Merge pull request #3180 from shentonfreude/feature/GH#2926_quick_tutorial_wsgiref_to_waitress
Feature/gh#2926 quick tutorial wsgiref to waitress
Diffstat (limited to 'docs/quick_tutorial/hello_world')
| -rw-r--r-- | docs/quick_tutorial/hello_world/app.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/quick_tutorial/hello_world/app.py b/docs/quick_tutorial/hello_world/app.py index d0351e251..ff0b950d3 100644 --- a/docs/quick_tutorial/hello_world/app.py +++ b/docs/quick_tutorial/hello_world/app.py @@ -1,4 +1,4 @@ -from wsgiref.simple_server import make_server +from waitress import serve from pyramid.config import Configurator from pyramid.response import Response @@ -13,5 +13,4 @@ if __name__ == '__main__': config.add_route('hello', '/') config.add_view(hello_world, route_name='hello') app = config.make_wsgi_app() - server = make_server('0.0.0.0', 6543, app) - server.serve_forever() + serve(app, host='0.0.0.0', port=6543) |
