Skip to content
Snippets Groups Projects
Commit f6e7b448 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Add SECRET_KEY configuration.

parent 06bfb04b
No related branches found
No related tags found
No related merge requests found
...@@ -3,3 +3,26 @@ import os ...@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment