How to use the summer.config.DevConfig function in summer

To help you get started, we’ve selected a few summer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gaowhen / summer / summer / config.py View on Github external
class TestConfig(Config):
    SITE_NAME = 'Test'
    SUBTITLE = '「东张西望 一无所长」'
    DOMAIN = 'http://gaowhen.dev/'
    DATABASE_URI = os.path.join(basedir, 'data-test.db')


class ProductConfig(Config):
    SITE_NAME = 'GaoWhen高H温'
    SUBTITLE = '「文不能测字 武不能防身」'
    DOMAIN = 'http://gaowhen.com/'
    DATABASE_URI = os.path.join(basedir, 'blog.db')


config = dict(
    dev=DevConfig,
    test=TestConfig,
    product=ProductConfig
)