From 95afe60a38fce0e2fa681e0114c43ba87988d648 Mon Sep 17 00:00:00 2001 From: Steve Piercy <web@stevepiercy.com> Date: Sun, 22 Oct 2017 12:39:56 +0200 Subject: [PATCH] Feature/gh#2926 quick tutorial wsgiref to waitress - backport #3180 to 1.8-branch --- 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 0a95f9a..fb68a71 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 @@ 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) -- Gitblit v1.9.3