Tweak some things to get Tailbonen working on its own.

This commit is contained in:
Lance Edgar 2015-11-15 21:06:21 -06:00
parent 8ec6a18cdc
commit 89b443c442
2 changed files with 3 additions and 1 deletions

View file

@ -83,7 +83,7 @@ requires = [
'pyramid_exclog', # 0.6 'pyramid_exclog', # 0.6
'pyramid_simpleform', # 0.6.1 'pyramid_simpleform', # 0.6.1
'pyramid_tm', # 0.3 'pyramid_tm', # 0.3
'rattail[auth,db]>=0.5.0', # 0.5.0 'rattail[db,auth,bouncer]>=0.5.0', # 0.5.0
'transaction', # 1.2.0 'transaction', # 1.2.0
'waitress', # 0.8.1 'waitress', # 0.8.1
'WebHelpers', # 1.3 'WebHelpers', # 1.3

View file

@ -153,6 +153,8 @@ def main(global_config, **settings):
""" """
This function returns a Pyramid WSGI application. This function returns a Pyramid WSGI application.
""" """
settings.setdefault('mako.directories', ['tailbone:templates'])
rattail_config = make_rattail_config(settings) rattail_config = make_rattail_config(settings)
pyramid_config = make_pyramid_config(settings) pyramid_config = make_pyramid_config(settings)
pyramid_config.include('tailbone')
return pyramid_config.make_wsgi_app() return pyramid_config.make_wsgi_app()