Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a3c3c94250
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.603 kb
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from controllers.legacy_view import LegacyView
def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
"""
engine = engine_from_config(settings, 'sqlalchemy.')
config = Configurator(settings=settings)
#config.add_static_view('public', 'public', cache_max_age=3600)
config.add_route('home', '/pyramid')
legacy_view = LegacyView(global_config, **settings)
config.add_notfound_view(view=legacy_view)
config.scan()
return config.make_wsgi_app()
Jump to Line
Something went wrong with that request. Please try again.