From 75d536e7b0f697ce2f8dd2d37d2917c970100c20 Mon Sep 17 00:00:00 2001 From: amercader Date: Mon, 26 Oct 2015 12:14:45 +0000 Subject: [PATCH] Load settings before jobs in dev wsgi file (same as 3147035f) --- wsgi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wsgi.py b/wsgi.py index e00d684..56a5e16 100644 --- a/wsgi.py +++ b/wsgi.py @@ -2,10 +2,11 @@ # install) use deployment/datapusher.wsgi import ckanserviceprovider.web as web -import datapusher.jobs as jobs +web.init() + +import datapusher.jobs as jobs # check whether jobs have been imported properly assert(jobs.push_to_datastore) -web.init() web.app.run(web.app.config.get('HOST'), web.app.config.get('PORT'))