diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-01-22 00:29:38 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2016-01-22 00:29:38 -0800 |
| commit | 257ac062342d5b2cd18b47737cf9fb94aa528b8a (patch) | |
| tree | 3cf0878f41f7186d600044774365126dd47ea559 /docs/quick_tour/routing | |
| parent | cdeda1bf3329e8c6ba1e86e699e205024471ca93 (diff) | |
| download | pyramid-257ac062342d5b2cd18b47737cf9fb94aa528b8a.tar.gz pyramid-257ac062342d5b2cd18b47737cf9fb94aa528b8a.tar.bz2 pyramid-257ac062342d5b2cd18b47737cf9fb94aa528b8a.zip | |
Overhaul Quick Tour: start to "Quick project startup with scaffolds"
Diffstat (limited to 'docs/quick_tour/routing')
| -rw-r--r-- | docs/quick_tour/routing/app.py | 2 | ||||
| -rw-r--r-- | docs/quick_tour/routing/views.py | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/docs/quick_tour/routing/app.py b/docs/quick_tour/routing/app.py index 04a8a6344..12b547bfe 100644 --- a/docs/quick_tour/routing/app.py +++ b/docs/quick_tour/routing/app.py @@ -3,9 +3,7 @@ from pyramid.config import Configurator if __name__ == '__main__': config = Configurator() - # Start Route 1 config.add_route('hello', '/howdy/{first}/{last}') - # End Route 1 config.scan('views') app = config.make_wsgi_app() server = make_server('0.0.0.0', 6543, app) diff --git a/docs/quick_tour/routing/views.py b/docs/quick_tour/routing/views.py index 8cb8d3780..8a3bd230e 100644 --- a/docs/quick_tour/routing/views.py +++ b/docs/quick_tour/routing/views.py @@ -2,9 +2,7 @@ from pyramid.response import Response from pyramid.view import view_config -# Start Route 1 @view_config(route_name='hello') def hello_world(request): body = '<h1>Hi %(first)s %(last)s!</h1>' % request.matchdict return Response(body) - # End Route 1
\ No newline at end of file |
