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': {