diff options
author | luxagraf <sng@luxagraf.net> | 2013-09-10 18:00:02 +0000 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2013-09-10 18:00:02 +0000 |
commit | 1bd92fd5abc212434cf8f41bb90ded3bf3795849 (patch) | |
tree | 13f56b442c1fe88a413e9aaf3a5eb8ff24eb5f5e /app/cron/sync_photos.py | |
parent | 4a1ae16f4446807960ec367a2c8afebf6175304e (diff) |
migrated to gunicorn, fixed elements broken in move to digital ocean and rebuilt the link gathering script
Diffstat (limited to 'app/cron/sync_photos.py')
-rw-r--r-- | app/cron/sync_photos.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/app/cron/sync_photos.py b/app/cron/sync_photos.py index 3dc7552..ff601e6 100644 --- a/app/cron/sync_photos.py +++ b/app/cron/sync_photos.py @@ -1,15 +1,12 @@ import sys, os from os.path import dirname, abspath - -PROJECT_ROOT = abspath(dirname(dirname(__file__))) - - +PROJECT_ROOT = abspath(dirname(dirname(dirname(__file__))))+'/' sys.path.append(PROJECT_ROOT) -sys.path.append(PROJECT_ROOT+'/apps') -sys.path.append(PROJECT_ROOT+'/lib') -sys.path.append(PROJECT_ROOT+'/lib/utils') -sys.path.append('/home/luxagraf/webapps/django1_3/lib/python2.7/') -os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' +sys.path.append(PROJECT_ROOT+'/app') +sys.path.append(PROJECT_ROOT+'/app/lib/utils') +sys.path.append(PROJECT_ROOT+'/config') +sys.path.append('/home/luxagraf/apps/venv/bin/python2.7/') +os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.settings' from photos import retriever -retriever.sync_flickr_photos()
\ No newline at end of file +retriever.sync_flickr_photos() |