import from kontor-flask

This commit is contained in:
Thomas Peetz
2025-01-08 22:31:20 +01:00
parent fc4110b11d
commit 6923b3e5ee
61 changed files with 4296 additions and 0 deletions
+47
View File
@@ -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
}