-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TemplateDoesNotExist error (captcha/widget.html) #27
Comments
@KalobTaulien Thanks for your comment. I had the same problem and adding |
Hey @DanAtShenTech I managed to fix this by setting It also good Google a while to allow localhost from some reason. 🤔 |
Thanks @KalobTaulien. That solved the problem. I now have the click interface. Also, I don't quite understand the second paragraph of your comment above. |
@DanAtShenTech edited. Was a typo, my bad. For the recpatcha settings I've had to wait ~45 minutes for Google to update to allow localhost urls with recaptcha. The site worked on staging and prod and later they must have updated their records because localhost worked later. This caused quite the headache. It has nothing to do with this repo, but for local development when you add localhost to allowed domains you might need to wait a while for the changes to propagate before continuing work. This has happened a few times in a row now (for me at least) |
Thanks for the clarification @KalobTaulien. One thing that I do for local development which might be useful to you - I'm on Windows and I set up local development domains in my hosts folder. I started this to have my password manager automatically fill in forms, but it's also useful if I'm testing for hostname. I just prefix the domain name with "dev.": From my hosts file:
|
setting NOCAPTCHA = True did not help for me. Adding captcha to INSTALLED_APPS however, did work out! Thanks for the explanation KalobTaulien! |
For newer versions, add |
Thank you so much, I was trying to make this work for hours using the |
My site is Running Django 2.1 and Wagtail 2.4 and I get a TemplateDoesNotExist error and it's trying to load captcha/widget.html.
What I found was if you add
captcha
to your settings file (along withwagtailcaptcha
) it solves this problem.It'd be great if you through this in your main README.md file to help any newcomers get this up and running faster. #
The text was updated successfully, but these errors were encountered: