django-spaminspector 0.1rc4

django-spaminspector is a generic spam inspector of Django via Akismet

Django's genetic spam inspector library via Akismet

Install

sudo pip install django-spaminspector

or

sudo pip install git+git://github.com/lambdalisue/django-spaminspector.git#egg=django-spaminspector

How to Use

  1. First, you need to specified SPAMINSPECTOR_AKISMET_KEY on settings.py

  2. Add spaminspector to INSTALLED_APPS on settings.py

  3. Add spaminspector.middleware.SpamInspectionMiddleware to MIDDLEWARE_CLASSES on settings.py

  4. Add view which you want to inspect to SPAMINSPECTOR_VIEWS The code below is a profile for django's comment framework:

    SPAMINSPECTOR_VIEWS = (
        ('django.contrib.comments.views.comments.post_comment', {
            'comment_type': 'comment',
            'comment_author': lambda request: request.POST.get('name', ""),
            'comment_author_email': lambda request: request.POST.get('email', ""),
            'comment_author_url': lambda request: request.POST.get('url', ""),
            'comment_contents': lambda request: request.POST.get('comment', ""),
        }),
    )
    

Settings

SPAMINSPECTOR_VIEWS
the list of view and inspection_profile. default settings is for django comment framework.
SPAMINSPECTOR_AKISMET_KEY
the api key of Akismet of your url.
SPAMINSPECTOR_SPAM_TEMPLATE
an template uri. this template is used to show when comment is detected as spam. (optional)
BSD

Author

Alisue

Pip

django-spaminspector==0.1rc4

Classifiers

  • Topic :: Internet :: WWW/HTTP
  • Programming Language :: Python
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
File Type Python Version Uploaded On Downloads
django_spaminspector-0.1rc4-py2.7.egg Egg 2.7 July 22, 2011 1,858
django-spaminspector-0.1rc4.tar.gz Source July 22, 2011 1,958
Version Release Date
0.1rc4 July 22, 2011
0.1rc3 July 22, 2011
Date Package Version Action
Nov. 4, 2014, 1:51 p.m. django-spaminspector 0.1rc4 Release Created
Nov. 4, 2014, 1:51 p.m. django-spaminspector 0.1rc3 Release Created
Nov. 4, 2014, 1:51 p.m. django-spaminspector Package Created