django-fobi/examples/simple/settings/bootstrap3_theme_recaptcha.py

23 lines
751 B
Python
Raw Normal View History

2016-10-17 01:30:09 +00:00
from .base import *
INSTALLED_APPS = list(INSTALLED_APPS)
2022-07-12 20:53:28 +00:00
if not "captcha" in INSTALLED_APPS:
INSTALLED_APPS.append("captcha")
2020-12-09 22:48:21 +00:00
2022-07-12 20:53:28 +00:00
if (
not "fobi.contrib.plugins.form_elements.security.recaptcha"
in INSTALLED_APPS
):
INSTALLED_APPS.append(
2022-07-12 20:53:28 +00:00
"fobi.contrib.plugins.form_elements.security.recaptcha"
)
2020-12-09 22:48:21 +00:00
# Test keys are taken from official dedicated Google page
2020-12-09 23:03:19 +00:00
# https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha.-what-should-i-do
2022-07-12 20:53:28 +00:00
RECAPTCHA_PUBLIC_KEY = "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"
RECAPTCHA_PRIVATE_KEY = "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"
RECAPTCHA_USE_SSL = True
2022-07-12 20:53:28 +00:00
SILENCED_SYSTEM_CHECKS = ["captcha.recaptcha_test_key_error"]
# FOBI_DEFAULT_THEME = 'simple'