From 393bfd7ad1f49f473708c7bef336a529aee6a0d8 Mon Sep 17 00:00:00 2001 From: "luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f" Date: Sat, 13 Mar 2010 19:34:58 +0000 Subject: added photo cron scripts --- cron/sync_photo_sets.py | 11 +++++++++++ cron/sync_photos.py | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 cron/sync_photo_sets.py create mode 100644 cron/sync_photos.py diff --git a/cron/sync_photo_sets.py b/cron/sync_photo_sets.py new file mode 100644 index 0000000..c8b67df --- /dev/null +++ b/cron/sync_photo_sets.py @@ -0,0 +1,11 @@ +import sys, os + +sys.path.append('/home/luxagraf/webapps/django') +sys.path.append('/home/luxagraf/webapps/django/luxagraf') +sys.path.append('/home/luxagraf/webapps/django/luxagraf/apps') +sys.path.append('/home/luxagraf/webapps/django/luxagraf/lib') +sys.path.append('/home/luxagraf/webapps/django/lib/python2.5/') +os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' + +from photos import utils +utils.sync_flickr_photos() \ No newline at end of file diff --git a/cron/sync_photos.py b/cron/sync_photos.py new file mode 100644 index 0000000..c8b67df --- /dev/null +++ b/cron/sync_photos.py @@ -0,0 +1,11 @@ +import sys, os + +sys.path.append('/home/luxagraf/webapps/django') +sys.path.append('/home/luxagraf/webapps/django/luxagraf') +sys.path.append('/home/luxagraf/webapps/django/luxagraf/apps') +sys.path.append('/home/luxagraf/webapps/django/luxagraf/lib') +sys.path.append('/home/luxagraf/webapps/django/lib/python2.5/') +os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' + +from photos import utils +utils.sync_flickr_photos() \ No newline at end of file -- cgit v1.2.3-70-g09d2