diff options
Diffstat (limited to 'config/settings')
-rw-r--r-- | config/settings/base.py | 5 | ||||
-rw-r--r-- | config/settings/production.py | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/config/settings/base.py b/config/settings/base.py index 157926b..991605c 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -77,6 +77,7 @@ THIRD_PARTY_APPS = [ "allauth.mfa", "allauth.socialaccount", "django_celery_beat", + "django_recaptcha", ] STRIPE_SECRET_KEY = env("STRIPE_SECRET_KEY") @@ -88,6 +89,7 @@ LOCAL_APPS = [ "alphabetlearning.users", "alphabetlearning.resources", "alphabetlearning.payments", + "alphabetlearning.pages", # Your stuff: custom apps go here ] # https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps @@ -366,3 +368,6 @@ CACHES = { "LOCATION": "rate_limit_cache", }, } + +RECAPTCHA_PUBLIC_KEY = env("RECAPTCHA_PUBLIC_KEY") +RECAPTCHA_PRIVATE_KEY = env("RECAPTCHA_PRIVATE_KEY") diff --git a/config/settings/production.py b/config/settings/production.py index 374be33..ff9e475 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -233,3 +233,4 @@ MAILGUN_API_URL = env("MAILGUN_API_URL", default="https://api.eu.mailgun.net/v3" USE_X_FORWARDED_HOST = True SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") +RECAPTCHA_USE_SSL = True # Use HTTPS for requests |