Re: Django Captcha Ajax call not working

2017-03-28 Thread valerio orfano
Hi Melvyin still not working $(".captcha_form").submit(function(event){ event.preventDefault(); var form = $(this) alert (form.serialize()) $.ajax({ type: "POST", url: "./captcha", contentTy

Re: Django Captcha Ajax call not working

2017-03-27 Thread valerio orfano
Hi Melvyn thanx a lot . I will try tomorrow early morning and will let u know. Thanx. valerio On Monday, March 27, 2017 at 3:31:38 PM UTC+2, Melvyn Sopacua wrote: > > Hi, > > > > {% if field.name = 'captcha' %} > > > > assigns 'captcha' to field.name and returns if that succeeded. So it's

Re: Django Captcha Ajax call not working

2017-03-27 Thread Melvyn Sopacua
Hi, {% if field.name = 'captcha' %} assigns 'captcha' to field.name and returns if that succeeded. So it's always true. You probably mean: {% if field.name == 'captcha' %} >From what you describe, testfield shows up and your template code says it >shouldn't show up. However, when debugging

Re: Django Captcha Ajax call not working

2017-03-27 Thread valerio orfano
testfield is where i type my captcha, sorry On Monday, March 27, 2017 at 2:38:15 PM UTC+2, valerio orfano wrote: > > Hi Melvyn thanx for ur reply, > > this is my form. > > class AjaxForm(forms.ModelForm): > captcha = CaptchaField() > class Meta: > model = ajaxModel > exclud

Re: Django Captcha Ajax call not working

2017-03-27 Thread valerio orfano
Hi Melvyn thanx for ur reply, this is my form. class AjaxForm(forms.ModelForm): captcha = CaptchaField() class Meta: model = ajaxModel exclude = [] class ajaxModel(models.Model): testfield = models.TextField(null=True, blank=True) If i don't use a ajaxmodel a get an

Re: Django Captcha Ajax call not working

2017-03-27 Thread Melvyn Sopacua
On Monday 27 March 2017 04:46:06 valerio orfano wrote: > {% if field.name = 'captcha' %} It may not make a difference if you only have one visible field, but this is not a comparison. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users

Re: Django Captcha Ajax call not working

2017-03-27 Thread valerio orfano
btw this is my html: {%csrf_token%} {{ form.non_field_errors }} {% for field in form.visible_fields %} {% if field.name = 'captcha' %} {{field}} {% endif %} {{ field.errors }} {% endfor %} {% for field in form.hidden_fields %} {{ field }}

Re: Django Captcha Ajax call not working

2017-03-27 Thread valerio orfano
Hi Andreas thak you very much. I've changed my html with the following: $(document).ready(function(){ $.ajaxSetup({ beforeSend: function(xhr, settings) { function getCookie(name) { var cookieValue = null; if

Re: Django Captcha Ajax call not working

2017-03-27 Thread ludovic coues
You Ajax call have a suspicious "data: {}" in the middle of all the arguments. On 27 Mar 2017 10:23 am, "valerio orfano" wrote: Hi, I managed to make an ajax call. But the form is always invalid. IT is like the captcha field passed to the view is always empty. valerio On Monday, March 27, 201

Re: Django Captcha Ajax call not working

2017-03-27 Thread Andréas Kühne
Hi, First of all - you are not sending anything to the form. $.ajax({ type: "POST", url: "../captcha", contentType: "application/json", data: {}, dataType: "json", success: function(data) {

Re: Django Captcha Ajax call not working

2017-03-27 Thread valerio orfano
Hi, I managed to make an ajax call. But the form is always invalid. IT is like the captcha field passed to the view is always empty. valerio On Monday, March 27, 2017 at 8:48:17 AM UTC+2, valerio orfano wrote: > > I have the following class view taken from documentation: > > class CaptchaView(Cr

Re: Django Captcha or MathCaptcha application

2017-03-23 Thread Camilo Torres
May be you are missing a data base migration? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, s

Re: Django Captcha or MathCaptcha application

2017-03-23 Thread valerio orfano
Belowe the steps i have followed, but it doesnt work. I type in my browser : www.localhost/capthca but no image is displayeded and i get an error : no such table: captcha_captchastore I dont find it very simple as suggested from documentation. Do you have any simple tutorial? 1.pip instal

Re: Django Captcha or MathCaptcha application

2017-03-22 Thread Thiago Parolin
I am using django-recaptcha2, that is a google recaptcha... Very simple to setup and use and works very well 2017-03-22 11:20 GMT-03:00 valerio orfano : > Hi > > i am trying to apply captcha process to my web site. I could find any > clear documentation out there (at least clear to me). Do you kn

Re: django captcha

2009-05-21 Thread Dougal Matthews
because its easy for them and they don't really get anything from doing it otherwise? ;) You'll find you have to head to SVN quite often to get projects in Django I'm afraid, it just seems to be fairly common practice. Although, many people are moving to github and it offers a download. Cheers, D

Re: django captcha

2009-05-21 Thread online
So i have to install svn on mymachine? Why people make download so complicated... On May 20, 10:22 pm, jai wrote: > svn checkouthttp://django-simple-captcha.googlecode.com/svn/trunk/ > django-simple-captcha-read-only > > On May 21, 9:30 am, online wrote: > > > Could anyone please recommend

Re: django captcha

2009-05-20 Thread jai
svn checkout http://django-simple-captcha.googlecode.com/svn/trunk/ django-simple-captcha-read-only On May 21, 9:30 am, online wrote: > Could anyone please recommend a open source library captcha working > fine with django? > > http://code.google.com/p/django-simple-captcha/ looks but i just > c

Re: django captcha

2009-05-20 Thread Sam Kuper
2009/5/21 online > Could anyone please recommend a open source library captcha working > fine with django? Personally, I'm a fan of ReCAPTCHA, but it may not be quite what you're after. > http://code.google.com/p/django-simple-captcha/ looks but i just > cannot find where to download. You

Re: django captcha apps

2009-04-07 Thread Martin
Did you browse google code already? http://code.google.com/p/django-captcha/ I bet there are more apps there... Best regards, Martin 2009/4/8 Joshua Partogi > > Hi all, > > Can anyone recommend me any good django captcha apps? I tried search > on the list but the results that is returned is m

Re: Django captcha problems

2006-03-02 Thread Luis Armendariz
syhpoon wrote: > Error occurs when I try to load template with form that is protected > with captcha, i.e. when I put {%load captcha%} {%captcha%} into my > template, without these lines it renders fine, but, naturally without > captcha image. The strangest thing for me is that, as I've mentioned

Re: Django captcha problems

2006-03-02 Thread syhpoon
Error occurs when I try to load template with form that is protected with captcha, i.e. when I put {%load captcha%} {%captcha%} into my template, without these lines it renders fine, but, naturally without captcha image. The strangest thing for me is that, as I've mentioned before, with django int

Re: Django captcha problems

2006-03-01 Thread Ian Holsman
Hi Syhpoon. the captcha should work fine, (it did the last time I tried it with the TRUNK, i've been focusing on other spots lately) is it complaiing like this when you are fetching the image, or when you are generating the page with the fields, or when you post the data back to it? if you coul

Re: Django captcha problems

2006-03-01 Thread syhpoon
Yes, I do use prefork mpm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Django captcha problems

2006-03-01 Thread Jeremy Dunck
On 3/1/06, syhpoon <[EMAIL PROTECTED]> wrote: > > Hi, > I've tried django captcha > (http://feh.holsman.net/articles/2005/12/15/django-captcha-app) but got > strange behaviour: > With internal django web server everything works just fine, but I got a > really misterious error with apache 2.0.55 an