48 lines
741 B
Python
48 lines
741 B
Python
# config.py
|
|
|
|
|
|
class Config(object):
|
|
"""
|
|
Common configurations
|
|
"""
|
|
|
|
# Put any configurations here that are common across all environments
|
|
host = '127.0.0.1'
|
|
port = 8500
|
|
database = 'kontor'
|
|
|
|
|
|
class DevelopmentConfig(Config):
|
|
"""
|
|
Development configurations
|
|
"""
|
|
|
|
DEBUG = True
|
|
host = '0.0.0.0'
|
|
database = 'kontor_dev'
|
|
|
|
|
|
class ProductionConfig(Config):
|
|
"""
|
|
Production configurations
|
|
"""
|
|
|
|
DEBUG = False
|
|
|
|
class TestingConfig(Config):
|
|
"""
|
|
Testing configurations
|
|
"""
|
|
|
|
TESTING = True
|
|
DEBUG = True
|
|
port = 8600
|
|
database = 'kontor_test'
|
|
|
|
app_config = {
|
|
'development': DevelopmentConfig,
|
|
'production': ProductionConfig,
|
|
'testing': TestingConfig
|
|
}
|
|
|