Steve Piercy
2018-08-04 2bcfaad6707ab5513249cec471e482d805761a1c
commit | author | age
b1b922 1 from pyramid.config import Configurator
PE 2
3
4 def main(global_config, **settings):
5     config = Configurator(settings=settings)
34e974 6     config.include('pyramid_chameleon')
b1b922 7     config.add_route('home', '/')
PE 8     config.add_route('hello', '/howdy')
8a8bbd 9     config.add_route('hello_json', '/howdy.json')
b1b922 10     config.scan('.views')
8a8bbd 11     return config.make_wsgi_app()