diff --git a/indigo/settings.py b/indigo/settings.py index b341f21c4..e0aa74651 100644 --- a/indigo/settings.py +++ b/indigo/settings.py @@ -64,7 +64,7 @@ 'allauth.socialaccount', # installations should include social account providers, such as # allauth.socialaccount.providers.google - 'captcha', + 'django_recaptcha', 'django.contrib.sites', 'django.contrib.admin', @@ -433,7 +433,7 @@ RECAPTCHA_PRIVATE_KEY = os.environ.get('RECAPTCHA_PRIVATE_KEY', '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe') if DEBUG: # don't complain about the test keys - SILENCED_SYSTEM_CHECKS = ['captcha.recaptcha_test_key_error'] + SILENCED_SYSTEM_CHECKS = ['django_recaptcha.recaptcha_test_key_error'] DATA_UPLOAD_MAX_NUMBER_FIELDS = 10000 diff --git a/indigo_app/forms/users.py b/indigo_app/forms/users.py index 9cf3b575f..1c355e902 100644 --- a/indigo_app/forms/users.py +++ b/indigo_app/forms/users.py @@ -1,5 +1,5 @@ from allauth.account.forms import SignupForm -from captcha.fields import ReCaptchaField +from django_recaptcha.fields import ReCaptchaField from django import forms from django.conf import settings from django.utils.translation import gettext_lazy as _ diff --git a/pyproject.toml b/pyproject.toml index 7d5de9b33..88213aa89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ dependencies = [ "django-htmx>=1.15.0", "django-languages-plus>=1.1.1", "django-pipeline>=1.6.11,<3.1.0", - "django-recaptcha>=3.0.0,<4.0.0", + "django-recaptcha>=4.0.0", "django-reversion>=3.0.9", "django-sass-processor>=1.1", "django-sass-processor-dart-sass>=0.0.1",