aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-03-02 12:23:39 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-03-03 22:23:47 +0100
commita5c180322fdb1cc249743b5d194f13b926e9303f (patch)
tree206b1a72f018455b5f636c603f030d1c5ae8a154 /bootstrap.py
parentfixing multi get (diff)
downloadnewspipe-a5c180322fdb1cc249743b5d194f13b926e9303f.tar.gz
newspipe-a5c180322fdb1cc249743b5d194f13b926e9303f.tar.bz2
newspipe-a5c180322fdb1cc249743b5d194f13b926e9303f.zip
fixing db_create script, migrating it to the manager
Diffstat (limited to 'bootstrap.py')
-rw-r--r--bootstrap.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap.py b/bootstrap.py
index 83862640..c5a86652 100644
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -41,3 +41,8 @@ application.config['RECAPTCHA_PUBLIC_KEY'] = conf.RECAPTCHA_PUBLIC_KEY
application.config['RECAPTCHA_PRIVATE_KEY'] = conf.RECAPTCHA_PRIVATE_KEY
db = SQLAlchemy(application)
+
+def populate_g():
+ from flask import g
+ g.db = db
+ g.app = application
bgstack15