diff --git a/threat_note/config.py b/threat_note/config.py new file mode 100644 index 0000000..5d39f3e --- /dev/null +++ b/threat_note/config.py @@ -0,0 +1,3 @@ +SECRET_KEY = 'yek_terces' +DEBUG = True +TEMPLATE_DEBUG = DEBUG diff --git a/threat_note/threat_note.py b/threat_note/threat_note.py index 25966fb..7118a19 100755 --- a/threat_note/threat_note.py +++ b/threat_note/threat_note.py @@ -55,9 +55,7 @@ # app = Flask(__name__) -app.config['SECRET_KEY'] = 'yek_terces' -app.debug = True -app.template_debug = True +app.config.from_pyfile('config.py') lm = LoginManager() lm.init_app(app) lm.login_view = 'login'