Tag: django / Back

Another few hours of my life lost due to spammers. (And a few Mac OS quirks i don't want to get into now : ) ). Anyway.. If you have any kind of form on your website you are guaranteed that you will receive spam in one form or another. To make it the least annoying for your real customers and users I think it's the best way to employ some kind of passive spam checking.

I previously only heard of Akismet which is only free for non-commercial users. But since i don't want to get into trouble I made a quick google search and found TypePad AntiSpam - The nice thing about it? It is completely free (at least right now) - but provides the same API as akismet.

So I simply downloaded the Python Akismet library and created a very simple utility function and base form in django to do the checking. So only when spam is recognized the user will have to fill out the captcha.

The whole magic lies in simply changing the baseurl:

from akismet import Akismet
# base url for TypePad AntiSpam would be:
#   api.antispam.typepad.com/1.1/

Akismet.baseurl = settings.AKISMET_BASEURL

You can also take a look at my full code for the form, which uses the Captcha Field from SCT.
Hey, we have Signatures !!! Great, isn't it ? ;)

Posted by Herbert Poul

Assigned Tags: spam, captcha, django, akismet, typepad antispam


Attachments: captcha_check.png (185.9 KB) , spamcheckedform.py (2.9 KB)

I just helped to launch another forum based on SCT: The Django Forum. As last time with http://django-resource.de we were able to automatically migrate all forum categories, users and posts without any hitches.

Hey, we have Signatures !!! Great, isn't it ? ;)

Posted by Herbert Poul

Assigned Tags: sct, django


Attachments: thedjangoforum_small.png (45.4 KB)

One year of SCT !

2008-02-23 20:50:44

I just realized that Sphene Community Tools (My currently most active private project implementing a django forum and wiki application) is already one year in development. This finally removes the "Short source control history" - warning on it's Ohloh project page.
Hey, we have Signatures !!! Great, isn't it ? ;)

Posted by Herbert Poul

Assigned Tags: sct, development, django


Simple CRUD application in django

2008-02-10 20:25:34

I've just finished my simple CRUD application in django for my WebappFrameworkComparison - This makes it four frameworks in which i've implemented the simple BarCrud application.
Hey, we have Signatures !!! Great, isn't it ? ;)

Page 1


RSS Feed

Personal website and blog of Herbert Poul. Also check out my Photo Gallery.

Herby's Photo Gallery



You are not logged in.