diff options
author | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2022-11-19 18:11:13 +0100 |
---|---|---|
committer | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2022-11-19 18:11:13 +0100 |
commit | c9f8dc72200e430d64a1f0ce598364a5a5678b8c (patch) | |
tree | 0a49115a9dafc899b346b729dedbad0a67ca1a6d /app.py | |
parent | b7bcefdffaec476dcc7d67610c7007e90cc89908 (diff) | |
download | justice-c9f8dc72200e430d64a1f0ce598364a5a5678b8c.tar.gz |
remove sensitive properties to a hidden file
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |