Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't get the Captcha to appear

I have already installed django-recaptcha and included the captcha in installed apps. I am using the private key and public key from this page: https://github.com/praekelt/django-recaptcha.

I included the statement captcha = ReCaptchaField(). When I clicked the page, it appears like this:

Captcha: Input error: k: Format of site key was invalid

Not sure where the error is. Need some guidance.

The html looks like this:

enter image description here

This is what i typed:

RECAPTCHA_PRIVATE_KEY = '98dfg6df7g56df6gdfgdfg65JHJH656565GFGFGs'
RECAPTCHA_PUBLIC_KEY = '76wtgdfsjhsydt7r5FFGFhgsdfytd656sad75fgh'
RECAPTCHA_USE_SSL = True
like image 847
lakshmen Avatar asked Nov 03 '22 16:11

lakshmen


1 Answers

According to the following thread, switching the private key and public key around fixes this error. That is, use

RECAPTCHA_PUBLIC_KEY = '98dfg6df7g56df6gdfgdfg65JHJH656565GFGFGs'
RECAPTCHA_PRIVATE_KEY = '76wtgdfsjhsydt7r5FFGFhgsdfytd656sad75fgh'

instead of the other way around as given in the documentation.

like image 182
David Robinson Avatar answered Nov 12 '22 10:11

David Robinson