This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

App that dynamically adds reCAPTCHA field to forms when user exceeds the rate limit

Project Description

django-ratelimit9 combines django-recaptcha and django-ratelimit into a single app.

Each time when a limit is exceeded a reCAPTCHA field is dynamically appended to a Form.

Make sure you have read the docs of these two requirements in order to learn how to set up limits and customize the reCAPTCHA.

Installation

  • Install via pip:

    pip install django-ratelimit9
    
  • Add ratelimit9 to your INSTALLED_APPS

Usage

Let’s say you want to use view MyView along with MyForm form.

Code for your forms.py:

from django.forms import Form
from ratelimit9.forms import Ratelimit9Form

class MyForm(Ratelimit9Form, ModelForm):
        # ...

Code for your views.py:

from django.views.generic import CreateView
from ratelimit9.mixins import Ratelimit9Mixin

class MyView(Ratelimit9Mixin, CreateView):
        ratelimit_key = 'ip'
        ratelimit_rate = '5/m'
        # ...
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-ratelimit9-0.1.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256 Source Dec 19, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting