diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-03-02 12:23:39 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2015-03-03 22:23:47 +0100 |
commit | a5c180322fdb1cc249743b5d194f13b926e9303f (patch) | |
tree | 206b1a72f018455b5f636c603f030d1c5ae8a154 /runserver.py | |
parent | fixing multi get (diff) | |
download | newspipe-a5c180322fdb1cc249743b5d194f13b926e9303f.tar.gz newspipe-a5c180322fdb1cc249743b5d194f13b926e9303f.tar.bz2 newspipe-a5c180322fdb1cc249743b5d194f13b926e9303f.zip |
fixing db_create script, migrating it to the manager
Diffstat (limited to 'runserver.py')
-rwxr-xr-x | runserver.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runserver.py b/runserver.py index 5a4aa1fe..2ced409f 100755 --- a/runserver.py +++ b/runserver.py @@ -19,7 +19,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from bootstrap import conf, application, db +from bootstrap import conf, application, db, populate_g from flask.ext.babel import Babel from flask.ext.babel import format_datetime @@ -45,11 +45,10 @@ from flask.ext.restful import Api from flask import g with application.app_context(): + populate_g() g.api = Api(application, prefix='/api/v2.0') g.babel = babel g.allowed_file = allowed_file - g.db = db - g.app = application from pyaggr3g470r import views application.register_blueprint(views.articles_bp) |