CPI Ordering System (the old version)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
from pyramid.config import Configurator
|
|
|
|
|
|
|
|
|
|
|
|
__version__ = '0.0.1'
|
|
|
|
|
|
|
|
def root_factory(request):
|
|
|
|
''' dummy root factory '''
|
|
|
|
return dict()
|
|
|
|
|
|
|
|
|
|
|
|
def main(global_config, **settings):
|
|
|
|
""" This function returns a Pyramid WSGI application.
|
|
|
|
"""
|
|
|
|
config = Configurator(settings=settings)
|
|
|
|
config.include('pyramid_jinja2')
|
|
|
|
config.include('.models')
|
|
|
|
config.add_static_view('static', 'static', cache_max_age=3600)
|
|
|
|
config.set_root_factory(root_factory)
|
|
|
|
config.scan()
|
|
|
|
return config.make_wsgi_app()
|