question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CAPTCHA_TEST_MODE no effect in settings.py

See original GitHub issue

setting CAPTCHA_TEST_MODE = True does not show any effect when specified in settings.py.

all other settings I am using are working . Can anyone confirm this issue?

django-ranged-response==0.2.0 django-simple-captcha==0.5.10 Pillow==5.4.1 Python 3.6.7 Django 2.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
mbicommented, Apr 4, 2019

Alright, there you go, 0.5.11 should fix this.

1reaction
Gourycommented, Jul 5, 2022

I retract cheers, it is still broken. Python 3.8, django 4.0.5, captcha 0.5.17

django.conf.settings.CAPTCHA_TEST_MODE is True form.is_valid() is False form.errors is {‘captcha’: [‘Invalid CAPTCHA’]}

Tried requesting ‘captcha’: ‘PASSED’, ‘captcha_0’: ‘PASSED’, ‘captcha_1’: ‘PASSED’ Same result.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django: Define a form differently when in testing mode
I have a customized captcha field. I want to remove that field from a form when displaying it during tests. My initial thought...
Read more >
Frequently Asked Questions | reCAPTCHA - Google Developers
I'd like to run automated tests with reCAPTCHA. What should I do? For reCAPTCHA v3, create a separate key for testing environments. Scores...
Read more >
How To Handle Captcha In Selenium - LambdaTest
By disabling captchas in test environments, you would no longer need to perform the Captcha task while testing a web application.
Read more >
Decoding captchas using Python - ThePythonGuru.com
CAPTCHA is designed so that a human could read the text without difficulty, while a machine can not. But on practice this usually...
Read more >
Using django-simple-captcha - Read the Docs
Install django-simple-captcha via pip: pip install django-simple-captcha · Add captcha to the INSTALLED_APPS in your settings.py · Run python manage.py migrate.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found