2016-10-17 01:30:09 +00:00
|
|
|
from .base import *
|
2014-12-17 00:06:23 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
):
|
2016-11-16 23:07:06 +00:00
|
|
|
INSTALLED_APPS.append(
|
2022-07-12 20:53:28 +00:00
|
|
|
"fobi.contrib.plugins.form_elements.security.recaptcha"
|
2016-11-16 23:07:06 +00:00
|
|
|
)
|
2014-12-17 00:06:23 +00:00
|
|
|
|
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"
|
2014-12-17 00:06:23 +00:00
|
|
|
RECAPTCHA_USE_SSL = True
|
2022-07-12 20:53:28 +00:00
|
|
|
SILENCED_SYSTEM_CHECKS = ["captcha.recaptcha_test_key_error"]
|
2016-11-16 23:07:06 +00:00
|
|
|
# FOBI_DEFAULT_THEME = 'simple'
|