gunicorn/examples/frameworks/pyramidapp.py
2011-03-23 07:46:55 +01:00

14 lines
338 B
Python

from pyramid.config import Configurator
from pyramid.response import Response
def hello_world(request):
return Response('Hello world!')
def goodbye_world(request):
return Response('Goodbye world!')
config = Configurator()
config.add_view(hello_world)
config.add_view(goodbye_world, name='goodbye')
app = config.make_wsgi_app()