From 7b143bd783e7279375b39ed91ece651788060706 Mon Sep 17 00:00:00 2001 From: carlosp420 Date: Tue, 28 Jul 2015 10:12:08 +0300 Subject: [PATCH] APIKEY variables are not needed in config.json. when using local server as photos repository. Fixes #249. --- voseq/voseq/settings/local.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/voseq/voseq/settings/local.py b/voseq/voseq/settings/local.py index 1c11496a..e30eecb0 100644 --- a/voseq/voseq/settings/local.py +++ b/voseq/voseq/settings/local.py @@ -32,8 +32,9 @@ def get_secret(setting, secrets=secrets): GOOGLE_MAPS_API_KEY = get_secret("GOOGLE_MAPS_API_KEY") PHOTOS_REPOSITORY = get_secret("PHOTOS_REPOSITORY") -FLICKR_API_KEY = get_secret("FLICKR_API_KEY") -FLICKR_API_SECRET = get_secret("FLICKR_API_SECRET") +if PHOTOS_REPOSITORY == 'flickr': + FLICKR_API_KEY = get_secret("FLICKR_API_KEY") + FLICKR_API_SECRET = get_secret("FLICKR_API_SECRET") DATABASES = { 'default': {