docs/narr/configuration.rst | ●●●●● patch | view | raw | blame | history |
docs/narr/configuration.rst
@@ -46,6 +46,7 @@ if __name__ == '__main__': config = Configurator() config.add_view(hello_world) app = config.make_wsgi_app() server = make_server('0.0.0.0', 8080, app) server.serve_forever() @@ -106,6 +107,7 @@ :linenos: from wsgiref.simple_server import make_server from pyramid.config import Configurator from pyramid.response import Response from pyramid.view import view_config