From b481069d9444cc0756bd9f6780e7700dcf4903f5 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 9 Dec 2024 17:16:41 +0000 Subject: wip: moving home page to home app and implementing reCAPTCHA --- config/settings/base.py | 5 +++++ config/settings/production.py | 1 + 2 files changed, 6 insertions(+) (limited to 'config/settings') 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 -- cgit v1.2.3