Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-spaminspector

How to install django-spaminspector

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-spaminspector
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1rc4 Available View build log
Windows (64-bit)
0.1rc4 Available View build log
Mac OS X (10.5+)
0.1rc4 Available View build log
Linux (32-bit)
0.1rc4 Available View build log
Linux (64-bit)
0.1rc4 Available View build log
 
Author
License
BSD
Dependencies
Imports
Lastest release
version 0.1rc4 on Nov 3rd, 2011

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)

Subscribe to package updates

Last updated Nov 3rd, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.