I used a very slight variation off that same code base - so let me take a stab at explaining what the general idea is behind how captcha was implemented -
In the view where you're going to display a captcha, generate first a "captcha" that just goes into the database - a combination of a UUID, the text of the captcha, and perhaps a timestamp that limits the time the captcha is valid. I use a limited alphabet to generate a random string. Pass the UUID of the captcha into the view Have a specific view method that takes the UUID, generates the image, and returns it. When the form gets it's data back, make sure you pass through the UUID of that requested captcha (I toss it into a <hidden> field). DO a check between the UUID handed back and the text the user entered - if it's good, nuke the Captcha request in the database and let them move on. Does that help at all? -joe On 2/20/07, Mike <[EMAIL PROTECTED]> wrote: > > > Hello, > > Can anyone puke up a simple example of using captcha with Django > forms? [I've already RTFM&N.] > > I installed the app code from http://code.google.com/p/django-captcha/ > and noticed the test but don't see how it works with templates and > extraspecially newforms (needs to be a tag library?). > > If there's a better or simpler option for implementing captcha I'd be > especially interested in that. > > Thank you! > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---