aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-05-02 00:36:28 +0200
committerPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-05-02 00:36:28 +0200
commit8e88b741af93bfed8e218306b584c8783e7830b0 (patch)
tree73421022d48d08b992f6241e79a2651f3ba06f97 /app.py
parente6ab38a4d9ca3744f39ef15789878a07fcc5effb (diff)
parent8ad1f0d450c5ec9cfd7a4a9d0dc19c7a216d8c97 (diff)
downloadjustice-8e88b741af93bfed8e218306b584c8783e7830b0.tar.gz
Merge branch 'main' of https://github.com/SveterCZE/justice
Diffstat (limited to 'app.py')
-rw-r--r--app.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.py b/app.py
index c89b6e6..39c96e0 100644
--- a/app.py
+++ b/app.py
@@ -10,11 +10,12 @@ Created on Sun Jan 17 09:38:19 2021
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from flask_sqlalchemy import SQLAlchemy
+from key_gen import get_key
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///justice.db'
app.config["SQLALCHEMY_ECHO"] = True
-app.secret_key = "123456"
app.debug = True
+app.secret_key = get_key
toolbar = DebugToolbarExtension(app)
db = SQLAlchemy(app) \ No newline at end of file