Closed MOwsianowski closed 4 years ago
WhenRECAPTCHA_DISABLE is set, then:
RECAPTCHA_DISABLE
RECAPTCHA_PRIVATE_KEY
RECAPTCHA_PUBLIC_KEY
Future update proposal: RECAPTCHA_DISABLE should be set normal in settings, without using os.environ. Then developer can decide how to set it, eg:
os.environ
RECAPTCHA_DISABLE = os.environ.get('RECAPTCHA_DISABLE', None)
RECAPTCHA_DISABLE = env('RECAPTCHA_DISABLE', default=None)
RECAPTCHA_DISABLE = True
RECAPTCHA_DISABLE = False
When
RECAPTCHA_DISABLE
is set, then:RECAPTCHA_PRIVATE_KEY
andRECAPTCHA_PUBLIC_KEY
is not needed.Future update proposal:
RECAPTCHA_DISABLE
should be set normal in settings, without usingos.environ
. Then developer can decide how to set it, eg:RECAPTCHA_DISABLE = os.environ.get('RECAPTCHA_DISABLE', None)
orRECAPTCHA_DISABLE = env('RECAPTCHA_DISABLE', default=None)
orRECAPTCHA_DISABLE = True
, settings.prod.py:RECAPTCHA_DISABLE = False