djangosnippets.org: Latest snippets posted by sneeuhttps://djangosnippets.org/users/sneeu/2007-03-14T17:17:19.955700-05:00sneeuAkismet Webservice
2007-03-14T17:17:19.955700-05:00sneeuhttps://djangosnippets.org/snippets/107/<p>A short little bit of code to test for comment spam against Akimet.</p>
<p>Use:
a = Akismet('<AkismetKey>', 'http://sneeu.com/blog/')
a.verify_key()
print a.comment_check(
comment_author='...',
comment_author_email='sneeu@example.com',
user_ip='10.0.0.1',
comment_content="""Comment content!"""
)</p>
Freely redistributableSlice filter
2007-03-06T14:52:47.258331-06:00sneeuhttps://djangosnippets.org/snippets/87/<p>Handy for things such as:
<code>{{ some_string|slice:","|join:";" }}</code></p>
Freely redistributable