1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

read secret key from json file

This commit is contained in:
Lynne Megido 2019-08-31 13:26:20 +10:00
parent bc0dcfb754
commit aea1cc7ccc
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
__pycache__
config.json

View file

@ -1,7 +1,10 @@
from flask import Flask, render_template, session
import json
cfg = json.load(open("config.json"))
app = Flask(__name__)
app.secret_key = "debug key"
app.secret_key = cfg['secret_key']
@app.route("/")
def hello():