當用戶要註冊我得到這個錯誤: AttributeError at /accounts/register/'
'Settings' object has no attribute 'RECAPTCHA_SECRET_KEY'
Request Method: POST
Request URL: http://127.0.0.1:8009/accounts/register/
Django
我收到此錯誤。 XMLHttpRequest cannot load https://www.google.com/recaptcha/api/siteverify. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present
我試圖將BeelabRecaptcha2Bundle集成到我的項目中。因此,我想命名reCaptcha字段本身g-recaptcha-response。當我把它添加到我的枝條模板,我得到以下錯誤: Uncaught PHP Exception Twig_Error_Runtime: "Neither the property "g" nor one of the methods "g()", "g