import from kontor-flask
This commit is contained in:
committed by
Thomas Peetz
parent
d6410e2584
commit
0d2f27f771
@@ -0,0 +1,47 @@
|
||||
# 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user