Add SECRET_KEY configuration.

This commit is contained in:
Patrick Jentsch 2019-07-03 15:40:09 +02:00
parent 06bfb04bcc
commit f6e7b44863

View File

@ -3,3 +3,26 @@ import os
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(Config):
DEBUG = True
# class TestingConfig(Config):
# class ProductionConfig(Config):
config = {
'development': DevelopmentConfig,
# 'testing': TestingConfig,
# 'production': ProductionConfig,
'default': DevelopmentConfig
}