@ -21,7 +21,7 @@ def retrieve_photos():
client_secret=config.INSTAGRAM_CLIENT_SECRET,
)
recent_media, next_ = api.user_recent_media(user_id='self', count=20)
path = os.path.join(settings.BASE_DIR, config.INSTAGRAM_RESULTS_PATH)
path = os.path.join(settings.BASE_DIR, settings.INSTAGRAM_RESULTS_PATH)
for idx, media in enumerate(recent_media):
try:
fname = os.path.join(path, f'{idx}.jpg')
@ -258,6 +258,8 @@ RAVEN_CONFIG = {
'release': raven.fetch_git_sha(BASE_DIR),
}
INSTAGRAM_RESULTS_PATH = 'media/instagram/results/'
from .local_settings import *
except ImportError: