# django-ratelimit

> Cache-based rate-limiting for Django.

- **URL**: https://www.freshcrate.ai/projects/django-ratelimit
- **Author**: pypi
- **Category**: Frameworks
- **Latest version**: `4.1.0` (2026-04-21)
- **License**: non-standard
- **Source**: https://github.com/jsocol/django-ratelimit
- **Homepage**: https://pypi.org/project/django-ratelimit/
- **Language**: Python
- **GitHub**: 1,145 stars, 200 forks
- **Registry**: pypi (`django-ratelimit`)
- **Tags**: `pypi`

## Description

================
Django Ratelimit
================

Django Ratelimit provides a decorator to rate-limit views. Limiting can
be based on IP address or a field in the request--either a GET or POST
variable.

.. image:: https://github.com/jsocol/django-ratelimit/workflows/test/badge.svg?branch=main
   :target: https://github.com/jsocol/django-ratelimit/actions

:Code:          https://github.com/jsocol/django-ratelimit
:License:       Apache Software License 2.0; see LICENSE file
:Issues:        https://github.com/jsocol/django-ratelimit/issues
:Documentation: http://django-ratelimit.readthedocs.io/

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `4.1.0` | 2026-04-21 | Low | Imported from PyPI (4.1.0) |
| `v4.1.0` | 2023-07-24 | Low | ## What's Changed * Fix urls in pyproject.toml by @jaap3 in https://github.com/jsocol/django-ratelimit/pull/277 * Test on Django 4.2 by @adamchainz in https://github.com/jsocol/django-ratelimit/pull/284 * Adds RATELIMIT_HASH_ALGORITHM config by @slick666 in https://github.com/jsocol/django-ratelimit/pull/282 * Fixes the docs to show the proper default hash algorithm by @slick666 in https://github.com/jsocol/django-ratelimit/pull/285 * Fix middleware name by @jacebrowning in https://github.c |
| `v4.1.0` | 2023-07-24 | Low | ## What's Changed * Fix urls in pyproject.toml by @jaap3 in https://github.com/jsocol/django-ratelimit/pull/277 * Test on Django 4.2 by @adamchainz in https://github.com/jsocol/django-ratelimit/pull/284 * Adds RATELIMIT_HASH_ALGORITHM config by @slick666 in https://github.com/jsocol/django-ratelimit/pull/282 * Fixes the docs to show the proper default hash algorithm by @slick666 in https://github.com/jsocol/django-ratelimit/pull/285 * Fix middleware name by @jacebrowning in https://github.c |
| `v4.1.0` | 2023-07-24 | Low | ## What's Changed * Fix urls in pyproject.toml by @jaap3 in https://github.com/jsocol/django-ratelimit/pull/277 * Test on Django 4.2 by @adamchainz in https://github.com/jsocol/django-ratelimit/pull/284 * Adds RATELIMIT_HASH_ALGORITHM config by @slick666 in https://github.com/jsocol/django-ratelimit/pull/282 * Fixes the docs to show the proper default hash algorithm by @slick666 in https://github.com/jsocol/django-ratelimit/pull/285 * Fix middleware name by @jacebrowning in https://github.c |
| `v4.1.0` | 2023-07-24 | Low | ## What's Changed * Fix urls in pyproject.toml by @jaap3 in https://github.com/jsocol/django-ratelimit/pull/277 * Test on Django 4.2 by @adamchainz in https://github.com/jsocol/django-ratelimit/pull/284 * Adds RATELIMIT_HASH_ALGORITHM config by @slick666 in https://github.com/jsocol/django-ratelimit/pull/282 * Fixes the docs to show the proper default hash algorithm by @slick666 in https://github.com/jsocol/django-ratelimit/pull/285 * Fix middleware name by @jacebrowning in https://github.c |
| `v4.1.0` | 2023-07-24 | Low | ## What's Changed * Fix urls in pyproject.toml by @jaap3 in https://github.com/jsocol/django-ratelimit/pull/277 * Test on Django 4.2 by @adamchainz in https://github.com/jsocol/django-ratelimit/pull/284 * Adds RATELIMIT_HASH_ALGORITHM config by @slick666 in https://github.com/jsocol/django-ratelimit/pull/282 * Fixes the docs to show the proper default hash algorithm by @slick666 in https://github.com/jsocol/django-ratelimit/pull/285 * Fix middleware name by @jacebrowning in https://github.c |
| `v4.1.0` | 2023-07-24 | Low | ## What's Changed * Fix urls in pyproject.toml by @jaap3 in https://github.com/jsocol/django-ratelimit/pull/277 * Test on Django 4.2 by @adamchainz in https://github.com/jsocol/django-ratelimit/pull/284 * Adds RATELIMIT_HASH_ALGORITHM config by @slick666 in https://github.com/jsocol/django-ratelimit/pull/282 * Fixes the docs to show the proper default hash algorithm by @slick666 in https://github.com/jsocol/django-ratelimit/pull/285 * Fix middleware name by @jacebrowning in https://github.c |
| `v4.1.0` | 2023-07-24 | Low | ## What's Changed * Fix urls in pyproject.toml by @jaap3 in https://github.com/jsocol/django-ratelimit/pull/277 * Test on Django 4.2 by @adamchainz in https://github.com/jsocol/django-ratelimit/pull/284 * Adds RATELIMIT_HASH_ALGORITHM config by @slick666 in https://github.com/jsocol/django-ratelimit/pull/282 * Fixes the docs to show the proper default hash algorithm by @slick666 in https://github.com/jsocol/django-ratelimit/pull/285 * Fix middleware name by @jacebrowning in https://github.c |
| `v4.1.0` | 2023-07-24 | Low | ## What's Changed * Fix urls in pyproject.toml by @jaap3 in https://github.com/jsocol/django-ratelimit/pull/277 * Test on Django 4.2 by @adamchainz in https://github.com/jsocol/django-ratelimit/pull/284 * Adds RATELIMIT_HASH_ALGORITHM config by @slick666 in https://github.com/jsocol/django-ratelimit/pull/282 * Fixes the docs to show the proper default hash algorithm by @slick666 in https://github.com/jsocol/django-ratelimit/pull/285 * Fix middleware name by @jacebrowning in https://github.c |
| `v4.1.0` | 2023-07-24 | Low | ## What's Changed * Fix urls in pyproject.toml by @jaap3 in https://github.com/jsocol/django-ratelimit/pull/277 * Test on Django 4.2 by @adamchainz in https://github.com/jsocol/django-ratelimit/pull/284 * Adds RATELIMIT_HASH_ALGORITHM config by @slick666 in https://github.com/jsocol/django-ratelimit/pull/282 * Fixes the docs to show the proper default hash algorithm by @slick666 in https://github.com/jsocol/django-ratelimit/pull/285 * Fix middleware name by @jacebrowning in https://github.c |

## Citation

- HTML: https://www.freshcrate.ai/projects/django-ratelimit
- Markdown: https://www.freshcrate.ai/projects/django-ratelimit.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/django-ratelimit/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
