from mako.lookup import TemplateLookup
from pylons import config
from sqlalchemy import engine_from_config
+from mailer import Mailer
import bluechips.lib.app_globals as app_globals
import bluechips.lib.helpers
default_filters=['escape'])
# Setup SQLAlchemy database engine
- engine = engine_from_config(config, 'sqlalchemy.', pool_recycle=3600)
+ engine = engine_from_config(config, 'sqlalchemy.')
init_model(engine)
# CONFIGURATION OPTIONS HERE (note: all config options will override
# any Pylons config options)
+ config['pylons.app_globals'].mailer = Mailer(config.get('mailer.host',
+ '127.0.0.1'))