captcha field django form designer, success html mail.

68 views
Skip to first unread message

pradnya

unread,
Jun 19, 2013, 1:31:08 PM6/19/13
to django...@googlegroups.com
Hi !,

I am working on django cms based website. Where I used django form designer( https://github.com/samluescher/django-form-designer)

Now I want to integrate djago-recaptcha with django form designer to add captch field in form.

In django-form-designer settings.py 

FIELD_CLASSES = getattr(settings, 'FORM_DESIGNER_FIELD_CLASSES', (
    ('django.forms.CharField', _('Text')),
    ('django.forms.EmailField', _('E-mail address')),
    ('django.forms.URLField', _('Web address')),
    ('django.forms.IntegerField', _('Number')),
    ('django.forms.DecimalField', _('Decimal number')),
    ('django.forms.BooleanField', _('Yes/No')),
    ('django.forms.DateField', _('Date')),
    ('django.forms.DateTimeField', _('Date & time')),
    ('django.forms.TimeField', _('Time')),
    ('django.forms.ChoiceField', _('Choice')),
    ('django.forms.MultipleChoiceField', _('Multiple Choice')),
    ('django.forms.ModelChoiceField', _('Model Choice')),
    ('django.forms.ModelMultipleChoiceField', _('Model Multiple Choice')),
    ('django.forms.RegexField', _('Regex')),
    ('django.forms.FileField', _('File')),
    # ('captcha.fields.CaptchaField', _('Captcha')),
))

Captcha field is commented, so I tried to override the settings in my project's settings.
Then I get error "CaptchaField does not exist". What should I do ?

And another doubt is how to send html email after successful submission of form.

Any pointer or help would be great.

Thanks

Felipe Coelho

unread,
Jun 19, 2013, 2:07:55 PM6/19/13
to Django users
2013/6/19 pradnya <mhatre....@gmail.com>
...

    ('django.forms.RegexField', _('Regex')),
    ('django.forms.FileField', _('File')),
    # ('captcha.fields.CaptchaField', _('Captcha')),

 The django-recaptcha field is called "ReCaptchaField", not just "CaptchaField"
Reply all
Reply to author
Forward
0 new messages