New to django and trying to configure django-registration 0.8 with recaptcha-client. I went for advice posted in response to this question .
I used the custom form and custom backend from this post, and the widget and field from this tutorial . My form is displayed correctly with the recaptcha widget, but when I submit it, it gives an error about the missing IP address. What is the best way to pass an IP address using django registration?
, , reCaptcha django.
- initial={'captcha': request.META['REMOTE_ADDR']} , RecaptchaRegistrationForm.
initial={'captcha': request.META['REMOTE_ADDR']}
, register/views.py.
- . urls.py , , /backends/default/, .
Source: https://habr.com/ru/post/1742765/More articles:Any viewing group? - androidОрганизация нескольких кодов вставки с помощью jQuery - javascriptDrupal: update file system path in database - drupalJQuery Datepicker does not select default date - jqueryCustom HTML output on Zend Form Checkbox setLabel Property - htmlProblem with C ++ recursion - c ++How can I get the file size in Perl before processing the download request? - uploadEnum: get a list of keys - javaHow to enable indexing of pages with dynamic data? - architectureSharepoint: how to get the current site / web list - sharepointAll Articles