Closed sentry-io[bot] closed 3 years ago
Hey @marksweb. This error is causing a 500 Server Error
when people browse contact page and other pages with a captcha.
@amakarudze I've not really understood what happened yet with that deployment, but this suggests something odd with the recaptcha version installed.
The version that should be installed after you reverted is django-recaptcha 1.4.0
The version that was upgraded in the django 3 change was to 2.0.6. In this version that template doesn't exist anymore.
Heres the templates in 2.0.6; https://github.com/praekelt/django-recaptcha/tree/2.0.6/captcha/templates/captcha
And 1.4.0; https://github.com/praekelt/django-recaptcha/tree/1.4.0/captcha/templates/captcha
The python code being executed must match 1.4, where that template is the default; https://github.com/praekelt/django-recaptcha/blob/1.4.0/captcha/client.py#L13
But the templates directory can't be the 1.4 version I assume.
Might be worth running pip-sync
on the server, just to make sure it's running the correct packages after the revert.
Ok @marksweb, I was about to ask if recaptcha versions changed after reading this https://github.com/springload/wagtail-django-recaptcha/issues/27. Let me try and run pip-sync
and also check the version we are running.
I also haven't understood what happened with the deployment. There were just too many errors I haven't even had the strength to read them all. Will probably try to do that tomorrow.
I just ran pip-sync
and everything is up-to-date. Probably since the last deployment failed, the server did not refresh from Django 3.2 update though the venv
had recaptcha
version 1.4.0 and not 2.0.6. It's now working so am closing this issue now.
Sentry Issue: DJANGO-GIRLS-WEBSITE-26