Move secret_key to config
This commit is contained in:
parent
ea2a984d24
commit
bc34b9ab90
|
@ -9,11 +9,13 @@ import psycopg2.extras
|
||||||
from flask import Flask, request, render_template, render_template_string, session, g, url_for
|
from flask import Flask, request, render_template, render_template_string, session, g, url_for
|
||||||
from flask_babel import Babel, _
|
from flask_babel import Babel, _
|
||||||
|
|
||||||
|
import config
|
||||||
|
|
||||||
logging.basicConfig(format="%(asctime)s %(levelname)s %(name)s %(lineno)d | %(message)s", level=logging.DEBUG)
|
logging.basicConfig(format="%(asctime)s %(levelname)s %(name)s %(lineno)d | %(message)s", level=logging.DEBUG)
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
babel = Babel(app)
|
babel = Babel(app)
|
||||||
app.secret_key = b"1234" # XXX - Should be in config (not in source, but stable across restarts)
|
app.secret_key = config.secret_key
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
secret_key = b"1234" # XXX - Should be in config (not in source, but stable across restarts)
|
||||||
|
|
Loading…
Reference in New Issue