rattail-demo/rattail_demo/config.py

21 lines
527 B
Python
Raw Normal View History

# -*- coding: utf-8; -*-
2016-12-10 14:16:37 -06:00
"""
Rattail Demo config extension
"""
from rattail.config import ConfigExtension
class DemoConfigExtension(ConfigExtension):
"""
Rattail Demo config extension
"""
key = 'rattail-demo'
def configure(self, config):
# tell rattail where our stuff lives
config.setdefault('rattail', 'model', 'rattail_demo.db.model')
2016-12-10 14:16:37 -06:00
config.setdefault('rattail.mail', 'emails', 'rattail_demo.emails')
config.setdefault('tailbone', 'menus', 'rattail_demo.web.menus')