diff options
| author | Chris McDonough <chrism@plope.com> | 2016-02-07 16:34:46 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2016-02-07 16:34:46 -0500 |
| commit | df7a123a847e2243f38688c033f06200382ba139 (patch) | |
| tree | cc8e032c2a85d9fee45e68f7f3501046c8bec8ed /docs/quick_tour/routing | |
| parent | 5cd91621668807f9b66811fe57a04fba96e7458a (diff) | |
| parent | ed04017d5a8e82db2e46412f841c55d83ef062b0 (diff) | |
| download | pyramid-df7a123a847e2243f38688c033f06200382ba139.tar.gz pyramid-df7a123a847e2243f38688c033f06200382ba139.tar.bz2 pyramid-df7a123a847e2243f38688c033f06200382ba139.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
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 |
