rattail-demo/rattail_demo/config.py
Lance Edgar 72a4c347d8 Define custom data model; add alembic scripts; etc.
actually our "custom" data model is just rattail + rattail-corepos
2020-03-04 19:08:20 -06:00

21 lines
527 B
Python

# -*- coding: utf-8; -*-
"""
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')
config.setdefault('rattail.mail', 'emails', 'rattail_demo.emails')
config.setdefault('tailbone', 'menus', 'rattail_demo.web.menus')