import sys, os sys.path.append('/home/luxagraf/webapps/django1_2') sys.path.append('/home/luxagraf/webapps/django1_2/luxagraf') sys.path.append('/home/luxagraf/webapps/django1_2/luxagraf/apps') sys.path.append('/home/luxagraf/webapps/django1_2/lib/python2.6/') sys.path.append('/home/luxagraf/webapps/django1_2/luxagraf/lib') os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from photos import retriever retriever.sync_flickr_photos()