From ae54d272a7ab11c92c51c9ffb3e5bdf419ca1387 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 28 Feb 2017 16:10:03 +0100
Subject: [PATCH] Alter default setting fields

---
 SciPost_v1/settings/base.py            | 4 ++--
 SciPost_v1/settings/production.py      | 4 ++++
 SciPost_v1/settings/staging_release.py | 4 ++++
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/SciPost_v1/settings/base.py b/SciPost_v1/settings/base.py
index d454b4c54..ec132d3dd 100644
--- a/SciPost_v1/settings/base.py
+++ b/SciPost_v1/settings/base.py
@@ -233,6 +233,6 @@ CROSSREF_LOGIN_ID = ''
 CROSSREF_LOGIN_PASSWORD = ''
 
 # Google reCaptcha
-RECAPTCHA_PUBLIC_KEY = get_secret("GOOGLE_RECAPTCHA_PUBLIC_KEY")
-RECAPTCHA_PRIVATE_KEY = get_secret("GOOGLE_RECAPTCHA_PRIVATE_KEY")
+RECAPTCHA_PUBLIC_KEY = ''
+RECAPTCHA_PRIVATE_KEY = ''
 NOCAPTCHA = True
diff --git a/SciPost_v1/settings/production.py b/SciPost_v1/settings/production.py
index 5de7b1fc6..eca480636 100644
--- a/SciPost_v1/settings/production.py
+++ b/SciPost_v1/settings/production.py
@@ -11,6 +11,10 @@ STATIC_ROOT = '/home/jscaux/webapps/scipost_static/'
 MEDIA_URL = 'https://scipost.org/media/'
 MEDIA_ROOT = '/home/jscaux/webapps/scipost_media/'
 
+# Recaptcha
+RECAPTCHA_PUBLIC_KEY = get_secret("GOOGLE_RECAPTCHA_PUBLIC_KEY")
+RECAPTCHA_PRIVATE_KEY = get_secret("GOOGLE_RECAPTCHA_PRIVATE_KEY")
+
 WEBPACK_LOADER['DEFAULT']['CACHE'] = True
 WEBPACK_LOADER['DEFAULT']['BUNDLE_DIR_NAME'] = '/home/jscaux/webapps/scipost_static/bundles/'
 
diff --git a/SciPost_v1/settings/staging_release.py b/SciPost_v1/settings/staging_release.py
index 6a81cc4eb..74bfb6ed8 100644
--- a/SciPost_v1/settings/staging_release.py
+++ b/SciPost_v1/settings/staging_release.py
@@ -7,6 +7,10 @@ from .base import *
 DEBUG = False
 ALLOWED_HOSTS = ['jdewit.webfactional.com']
 
+# Recaptcha
+RECAPTCHA_PUBLIC_KEY = get_secret("GOOGLE_RECAPTCHA_PUBLIC_KEY")
+RECAPTCHA_PRIVATE_KEY = get_secret("GOOGLE_RECAPTCHA_PRIVATE_KEY")
+
 # Static and media
 STATIC_URL = '/static/'
 STATIC_ROOT = '/home/jdewit/webapps/scipost_static/'
-- 
GitLab