{% load ocyan_main %} {% comment %} The docs state the following: "reCAPTCHA tokens expire after two minutes. If you're protecting an action with reCAPTCHA, make sure to call execute when the user takes the action rather than on page load." The default captcha implementation executes on page load, which, as said above shouldn't be. This template is overridden so it generates a new key every 110 seconds (less than 2 minutes) because we don't know when and which form is being submitted that has a captcha. We also support multiple captcha's per page by passing the widget_uuid to the updateCaptcha function so it updates the correct captcha widget. And at last we make sure the google recaptcha script will only be loaded once in the DOM. Solution from: https://github.com/praekelt/django-recaptcha/issues/183#issuecomment-616767858 {% endcomment %}