aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2022-11-19 18:11:13 +0100
committerPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2022-11-19 18:11:13 +0100
commitc9f8dc72200e430d64a1f0ce598364a5a5678b8c (patch)
tree0a49115a9dafc899b346b729dedbad0a67ca1a6d /app.py
parentb7bcefdffaec476dcc7d67610c7007e90cc89908 (diff)
downloadjustice-c9f8dc72200e430d64a1f0ce598364a5a5678b8c.tar.gz
remove sensitive properties to a hidden file
Diffstat (limited to 'app.py')
-rw-r--r--app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/app.py b/app.py
index fa47203..e8ac2f7 100644
--- a/app.py
+++ b/app.py
@@ -10,12 +10,13 @@ Created on Sun Jan 17 09:38:19 2021
from flask import Flask
# from flask_debugtoolbar import DebugToolbarExtension
from flask_sqlalchemy import SQLAlchemy
+from config_data import secret_key, db_address
app = Flask(__name__)
-app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///justice.db'
+app.config['SQLALCHEMY_DATABASE_URI'] = db_address
app.config["SQLALCHEMY_ECHO"] = False
app.debug = False
# HIDE THIS BEFORE DEPLOYING TO PRODUCTION :)
-app.secret_key = "123456"
+app.secret_key = secret_key
# toolbar = DebugToolbarExtension(app)
db = SQLAlchemy(app) \ No newline at end of file