diff options
| author | Paul Everitt <paul@agendaless.com> | 2013-08-11 09:53:00 -0400 |
|---|---|---|
| committer | Paul Everitt <paul@agendaless.com> | 2013-08-11 09:53:00 -0400 |
| commit | ae901436a61563968cc31cc636f1fbeb5e85b528 (patch) | |
| tree | 8ce7a18dd4913f7195c5a013ab03eb64ae21180d /docs/getting_started/quick_glance/requests/app.py | |
| parent | d4bd291fd5ca51bbbeec487f2011476706a5952f (diff) | |
| download | pyramid-ae901436a61563968cc31cc636f1fbeb5e85b528.tar.gz pyramid-ae901436a61563968cc31cc636f1fbeb5e85b528.tar.bz2 pyramid-ae901436a61563968cc31cc636f1fbeb5e85b528.zip | |
Per discussion with Chris, just wrap up "getting started" as the Quick Tour. Still need to do more linking and perhaps add a section on root factories, authorization, authentication.
Diffstat (limited to 'docs/getting_started/quick_glance/requests/app.py')
| -rw-r--r-- | docs/getting_started/quick_glance/requests/app.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/docs/getting_started/quick_glance/requests/app.py b/docs/getting_started/quick_glance/requests/app.py deleted file mode 100644 index 7ac81eb50..000000000 --- a/docs/getting_started/quick_glance/requests/app.py +++ /dev/null @@ -1,24 +0,0 @@ -from wsgiref.simple_server import make_server -from pyramid.config import Configurator -from pyramid.response import Response - - -def hello_world(request): - # Some parameters from a request such as /?name=lisa - url = request.url - name = request.params.get('name', 'No Name Provided') - - body = 'URL %s with name: %s' % (url, name) - return Response( - content_type="text/plain", - body=body - ) - - -if __name__ == '__main__': - config = Configurator() - config.add_route('hello', '/') - config.add_view(hello_world, route_name='hello') - app = config.make_wsgi_app() - server = make_server('0.0.0.0', 6543, app) - server.serve_forever()
\ No newline at end of file |
