mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Add SECRET_KEY configuration.
This commit is contained in:
parent
06bfb04bcc
commit
f6e7b44863
23
config.py
23
config.py
@ -3,3 +3,26 @@ import os
|
|||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
|
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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user