Skip to content

Commit

Permalink
Load settings before we load jobs.
Browse files Browse the repository at this point in the history
So that jobs can access settings.
Because messytables doesn't really understand what dates are.
  • Loading branch information
davidmiller committed Feb 19, 2015
1 parent 99264ea commit 3147035
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deployment/datapusher.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ activate_this = os.path.join('/usr/lib/ckan/datapusher/bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))

import ckanserviceprovider.web as web
import datapusher.jobs as jobs
os.environ['JOB_CONFIG'] = '/etc/ckan/datapusher_settings.py'

web.init()

import datapusher.jobs as jobs

application = web.app


0 comments on commit 3147035

Please sign in to comment.