From a5c180322fdb1cc249743b5d194f13b926e9303f Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Mon, 2 Mar 2015 12:23:39 +0100 Subject: fixing db_create script, migrating it to the manager --- runserver.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runserver.py') 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 . -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) -- cgit