Skip to content
Snippets Groups Projects
config.py 566 B
Newer Older
Bo-Chun Chen's avatar
Bo-Chun Chen committed
"""
Define different environment running the app
"""

# config.py


class Config(object):
    """
    Common configurations
    """

    DEBUG = True


class DevelopmentConfig(Config):
    """
    Development configurations
    """

    DEBUG = True


class ProductionConfig(Config):
    """
    Production configurations
    """

    DEBUG = False


class TestingConfig(Config):
    """
    Testing configurations
    """

    TESTING = True


app_config = {
Bo-Chun Chen's avatar
Bo-Chun Chen committed
    "development": DevelopmentConfig,
    "production": ProductionConfig,
    "testing": TestingConfig,