Replies: 3 comments
-
In order recaptcha to be rendered it uses google servers to communicate. For that reason you need working internet connection. If you want to develop without internet you just need to make your forms to not include captcha field when debug (but by this way you cant test if your configuration is correct), or to use another application for captcha validation which generates images and challenges locally (like django-simple-captcha). |
Beta Was this translation helpful? Give feedback.
-
As far as I can see, it should work as documented. The only thing I doubt is perhaps instead of providing the "PASSED" in initial you should instead provide it's value in data:
|
Beta Was this translation helpful? Give feedback.
-
I am unable to disable on dev environment. I don't print the "captcha" field to the template because I don't want to show it on dev. For me, in
|
Beta Was this translation helpful? Give feedback.
-
In my settings
When rendering the field I get the captcha box with
ERROR: Invalid site key
.I also tried suplying the initial fields to the form
Same result.
Idealy it should be possible to work on local dev env with no internet connection meaning under
DEBUG=True
or someRECAPTCHA_DISABLED=True
the template will not even render and the field will always be valid.Am I missing something?
Thanks, Haki.
Beta Was this translation helpful? Give feedback.
All reactions