2020-01-21 06:35:58 +00:00
|
|
|
try:
|
|
|
|
from snowpenguin.django.recaptcha2.fields import ReCaptchaField
|
|
|
|
from snowpenguin.django.recaptcha2.widgets import ReCaptchaWidget
|
|
|
|
except ImportError:
|
|
|
|
ReCaptchaField = None
|
|
|
|
ReCaptchaWidget = None
|
|
|
|
else:
|
|
|
|
from django.conf import settings
|
2022-05-14 17:57:27 +00:00
|
|
|
|
|
|
|
if not hasattr(settings, "RECAPTCHA_PRIVATE_KEY"):
|
2020-01-21 06:35:58 +00:00
|
|
|
ReCaptchaField = None
|
|
|
|
ReCaptchaWidget = None
|