Sorry, I forgot
RECAPTCHA_PUBLIC_KEY = 'xxx' RECAPTCHA_PRIVATE_KEY = 'xx' El divendres, 15 gener de 2016 10:16:48 UTC+1, Alexandre Busquets Triola va escriure: > > Well, it's easy > > I installed django-recaptcha > > and then I added the ReCaptchaField in settings > > > FORMS_EXTRA_FIELDS = ( > (100, "captcha.fields.ReCaptchaField", "ReCaptcha"), > ) > > > > El dijous, 14 gener de 2016 19:26:19 UTC+1, Alexander Tyapkov va escriure: >> >> Yes, I have done it but not is the way I have expected. I didn't manage >> to register ReCaptcha field inside of Mezzanine. >> Instead, I have created my own form in which I have included recaptcha >> field and afterwards used page_processors for every page where I needed >> recaptcha >> >> Hope, this will help! >> >> Best regards, >> Alexander >> >> 2016-01-14 15:53 GMT+01:00 Alexandre Busquets Triola <[email protected]>: >> >>> Hi Alexander, >>> >>> I also need use recaptcha with mezzanine. Have you do it? >>> >>> >>> >>> El diumenge, 20 desembre de 2015 19:54:30 UTC+1, Alexander Tyapkov va >>> escriure: >>> >>>> I have updated Mezzanine to 4.0.1 and found out that the code which >>>> registers additional field for forms is not working anymore. >>>> I also want to move to reCaptcha. For that I have downloaded >>>> django-recaptcha and have following code: >>>> >>>> from captcha import fields as captcha_fields >>>> >>>> GREATEST_ID = max(c[0] for c in mezzanine_fields.NAMES) >>>> ID = GREATEST_ID + 1 >>>> NAME = 'CAPTCHA' >>>> setattr(mezzanine_fields, NAME, ID) >>>> mezzanine_fields.NAMES = list(mezzanine_fields.NAMES) >>>> mezzanine_fields.NAMES.append((ID, _('Captcha'))) >>>> >>>> mezzanine_fields.NAMES = tuple(mezzanine_fields.NAMES) >>>> mezzanine_fields.CLASSES[ID] = captcha_fields.ReCaptchaField >>>> >>>> The problem is that registered field doesnt appear in admin. Can >>>> anybody suggest something? >>>> >>>> P.S. Also I have found that it is possible to user FORM_EXTRA_FIELDS in >>>> settings but no good example is provided. Can that help? Can anybody post >>>> an example of usage? >>>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "Mezzanine Users" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/mezzanine-users/C9lyFkhV9wU/unsubscribe >>> . >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
