Private
Public Access
1
0

new form with recaptcha

This commit is contained in:
2024-05-22 20:47:20 +02:00
parent fe620031dc
commit ce978bfe8e
5 changed files with 25 additions and 88 deletions

View File

@@ -82,6 +82,7 @@ INSTALLED_APPS = [
'rules',
'taggit',
'boatmovers',
'django_recaptcha',
]
AUTHENTICATION_BACKENDS = (
@@ -611,9 +612,13 @@ except KeyError:
try:
RECAPTCHA_SITE_KEY = CFG['recaptcha_site_key']
RECAPTCHA_SITE_SECRET = CFG['recaptcha_site_secret']
RECAPTCHA_PUBLIC_KEY = CFG['recaptcha_site_key']
RECAPTCHA_PRIVATE_KEY = CFG['recaptcha_site_secret']
except KeyError: # pragma: no cover
RECAPTCHA_SITE_KEY = ''
RECAPTCHA_SITE_SECRET = ''
RECAPTCHA_PUBLIC_KEY = ''
RECAPTCHA_PRIVATE_KEY = ''
GEOIP_PATH = STATIC_ROOT