comparison pylons_app/config/middleware.py @ 10:525ed90e4577

major app speedup moved the wsgi creation to app globals, in order to make it run only once. little config changes.
author Marcin Kuzminski
date Sat, 20 Feb 2010 14:30:13 +0100
parents 7322f231ad09
children 5f30a6d558dc
comparison
equal deleted inserted replaced
9:058f63b6c2ff 10:525ed90e4577
65 # Serve static files 65 # Serve static files
66 static_app = StaticURLParser(config['pylons.paths']['static_files']) 66 static_app = StaticURLParser(config['pylons.paths']['static_files'])
67 app = Cascade([static_app, app]) 67 app = Cascade([static_app, app])
68 68
69 #dozer debug 69 #dozer debug
70 # if asbool(config['debug']): 70 if asbool(config['debug']):
71 # from dozer import Logview 71 from dozer import Logview
72 # app = Logview(app, config) 72 app = Logview(app, config)
73 73
74 return app 74 return app