diff options
| author | Michael Merickel <michael@merickel.org> | 2012-01-05 03:46:18 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2012-01-05 03:46:18 -0600 |
| commit | 64497edc64a153815c54b254bf64a46ac21a6ac7 (patch) | |
| tree | 3e62249b98413a881cddefa4243f30004d74e235 /docs/narr/configuration.rst | |
| parent | 52a948e65ef923340a9c172fe6d258f2832f8799 (diff) | |
| download | pyramid-64497edc64a153815c54b254bf64a46ac21a6ac7.tar.gz pyramid-64497edc64a153815c54b254bf64a46ac21a6ac7.tar.bz2 pyramid-64497edc64a153815c54b254bf64a46ac21a6ac7.zip | |
Fixed a couple docs bugs reported by davidfung.
Diffstat (limited to 'docs/narr/configuration.rst')
| -rw-r--r-- | docs/narr/configuration.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst index 37122e382..cd3dab099 100644 --- a/docs/narr/configuration.rst +++ b/docs/narr/configuration.rst @@ -46,6 +46,7 @@ applications, configured imperatively: 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 @@ in a package and its subpackages. For example: :linenos: from wsgiref.simple_server import make_server + from pyramid.config import Configurator from pyramid.response import Response from pyramid.view import view_config |
