On Tue, Nov 10, 2026 at 4:28 AM Paul Tomblin via Mailman-users < mailman-users@mailman3.org> wrote:
I know that the captcha guide isn't an official Mailman3 product, but I'm trying to follow the instructions on
https://eu.kictanet.or.ke/~wash/mailman3-captcha-guide.html
and I've gotten to the part where it says to run:
python -c " import django, os os.environ.setdefault('DJANGO_SETTINGS_MODULE','mailman_web.settings') django.setup() from django.conf import settings print('django_recaptcha in INSTALLED_APPS:', 'django_recaptcha' in settings.INSTALLED_APPS) print('CAPTCHA_SERVICE:', settings.CAPTCHA_SERVICE) "And I'm getting the result django_recaptcha in INSTALLED_APPS: False Traceback (most recent call last): File "<string>", line 7, in <module> print('CAPTCHA_SERVICE:', *settings.CAPTCHA_SERVICE*) *^^^^^^^^^^^^^^^^^^^^^^^^* File "/opt/mailman/venv/lib/python3.13/site-packages/django/conf/**init**.py", line 104, in **getattr** val = getattr(_wrapped, name) *AttributeError*: 'Settings' object has no attribute 'CAPTCHA_SERVICE'
However, in /etc/mailman3/settings.py, I have
CAPTCHA support
CAPTCHA_SERVICE = 'recaptchaV3' RECAPTCHA_PUBLIC_KEY_V3 = '<never mind>' RECAPTCHA_PRIVATE_KEY_V3 = '<never mind>' INSTALLED_APPS += ['django_recaptcha']
django_recaptcha's own startup system check only reads the unsuffixed
setting names below — without this alias it silently falls back to
Google's public test keys and fails checks.recaptcha_test_key_error on
every Django system check run (including mailman-web's cron jobs).
RECAPTCHA_PUBLIC_KEY = RECAPTCHA_PUBLIC_KEY_V3 RECAPTCHA_PRIVATE_KEY = RECAPTCHA_PRIVATE_KEY_V3
I do see the Captcha logo on the login pages.
Thanks for the detailed report. You didn't miss a step. The verification command in section 4.1 of my guide was wrong.
It pointed Django at mailman_web.settings, which is the package's default
settings and doesn't include /etc/mailman3/settings.py.
That's why it said django_recaptcha wasn't in INSTALLED_APPS and then
failed on CAPTCHA_SERVICE, even though your config is correct and the badge
shows on your login pages.
I've updated the guide (same link). To check your install, run these as the mailman user:
/opt/mailman/venv/bin/mailman-web diffsettings | grep -i -E 'captcha|recaptcha' /opt/mailman/venv/bin/mailman-web check
You should see CAPTCHA_SERVICE = 'recaptchaV3', django_recaptcha in INSTALLED_APPS, and no errors from check. Since you can already see the badge, you're good. Note that diffsettings prints your full reCAPTCHA keys, so mask them before pasting the output anywhere.
The updated guide also notes that privacy browsers like Brave can hide the badge, so test in a clean Chrome or Firefox profile if it ever seems missing.
Feel free to ask more questions if you encounter another issue.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\*(ツ)*/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]