Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Rate limiting for django applications

Project Description

djlimiter provides rate limiting features to django via a middleware.


Add the rate limiter to your django projects’ and enable a global rate limit for all views in your project:

MIDDLEWARE_CLASSES += ("djlimiter.Limiter",)
RATELIMIT_GLOBAL = "10/second"

If you only want to enable rate limits to certain endpoints, leave out the RATELIMIT_GLOBAL setting and use the decorator approach instead in the respective view function:

def index(request):

For detailed documentation visit Read the docs


0.2 2015-12-20

  • Django 1.8/1.9 compatibility

0.1.1 2015-01-09

  • Bug Fix: remove duplicate hits when rate limits are stacked.
  • Bug Fix: multiple rate limits returned by dynamic limits weren’t respected.
  • Documentation tweaks.

0.1.0 2015-01-09

  • first release.
Release History

Release History

This version
History Node


History Node


History Node


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
djlimiter-0.2-py2.7.egg (17.5 kB) Copy SHA256 Checksum SHA256 2.7 Egg Dec 20, 2015
djlimiter-0.2.tar.gz (19.7 kB) Copy SHA256 Checksum SHA256 Source Dec 20, 2015

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