Steve Piercy
2017-07-04 d91e5d4d5d0165a7f7599c84c988b981b5fd0d2d
docs/quick_tour/routing/app.py
@@ -2,9 +2,9 @@
from pyramid.config import Configurator
if __name__ == '__main__':
    config = Configurator()
    config.add_route('hello', '/howdy/{first}/{last}')
    config.scan('views')
    app = config.make_wsgi_app()
    with Configurator() as config:
        config.add_route('hello', '/howdy/{first}/{last}')
        config.scan('views')
        app = config.make_wsgi_app()
    server = make_server('0.0.0.0', 6543, app)
    server.serve_forever()
    server.serve_forever()