diff options
author | 2016-12-05 23:11:56 +0200 | |
---|---|---|
committer | 2016-12-05 23:11:56 +0200 | |
commit | 85f13c2845302158fb1853e34d095a122d84ac53 (patch) | |
tree | 2be1a34d7c26a7fe221e21ef69a4b66ee31dba7e /backend | |
parent | sync: return empty dict on projects retrieval error, so the caller won't error (diff) | |
download | grumpy-85f13c2845302158fb1853e34d095a122d84ac53.tar.gz grumpy-85f13c2845302158fb1853e34d095a122d84ac53.tar.bz2 grumpy-85f13c2845302158fb1853e34d095a122d84ac53.zip |
frontend: Setup Flask-WTF and use it for following maintainer checkboxes display
No POST handling yet.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/__init__.py b/backend/__init__.py index 4d78cd8..53cefe1 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -4,6 +4,7 @@ from flask_sqlalchemy import SQLAlchemy app = Flask("frontend") # FIXME: Finish rearranging frontend/backend modules properly instead of pretending to be frontend in backend/__init__ because jinja templates are looked for from <what_is_passed_here>/templates app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///../backend/grumpy.db" # FIXME: configuration support; weird ../ because of claiming we are "frontend" to Flask and want to keep the path the same it was before for now. But this problem should go away with config, at least for postgres :) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False +app.config['SECRET_KEY'] = 'Change me, you fool' db = SQLAlchemy(app) from frontend import * |