From f6e7b448636c08e005f47d81905cd846535e5a6e Mon Sep 17 00:00:00 2001
From: Patrick Jentsch <p.jentsch@uni-bielefeld.de>
Date: Wed, 3 Jul 2019 15:40:09 +0200
Subject: [PATCH] Add SECRET_KEY configuration.

---
 config.py | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/config.py b/config.py
index a97948ee..1a5d9d8b 100644
--- a/config.py
+++ b/config.py
@@ -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
+}
-- 
GitLab