[Pkg-debile-commits] [debile-web] 01/10: add a configuration file. Necessary for flask-wtf
Sylvestre Ledru
sylvestre at alioth.debian.org
Tue Aug 27 13:22:34 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch update-usuability
in repository debile-web.
commit ab0b2f45c44e13e683de5cd8b16bc57572bc64e0
Author: Lucy manager <lucy at irill1.inria.fr>
Date: Sat Aug 17 11:59:36 2013 +0200
add a configuration file. Necessary for flask-wtf
---
app.py | 3 +--
config.py | 2 ++
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/app.py b/app.py
index 6b1f819..3a61667 100644
--- a/app.py
+++ b/app.py
@@ -21,9 +21,8 @@
from flask import Flask
from debile.blueprints.frontend import frontend
-
app = Flask(__name__)
-
+app.config.from_object('config')
app.register_blueprint(frontend)
diff --git a/config.py b/config.py
new file mode 100644
index 0000000..63bb59c
--- /dev/null
+++ b/config.py
@@ -0,0 +1,2 @@
+CSRF_ENABLED = True
+SECRET_KEY = 'that-is_a_secr+et+key'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git
More information about the Pkg-debile-commits
mailing list