Add a developer guide for Rate Limiting.
Review Request #14758 — Created Jan. 5, 2026 and updated
This adds a guide to the docs for using the new general rate limiting
support. It covers the new functions and best practices for constructing
rate limit keys.
Built the docs. Checked for any obvious errors, and for bad links and
build errors.
| Summary | ID |
|---|---|
| 8a62dac0f10915ee2057af28fbf84c4e7ab1fa60 |
| Description | From | Last Updated |
|---|---|---|
|
Typo: let's -> lets |
|
|
|
The arg names in the code are total_limit and period_secs |
|
|
|
The default is to not increment. We should fix this paragraph and maybe also provide an example of check+increment. |
|
|
|
Let's remove "by default" from this sentence. |
|
|
|
We should import RateLimit in here too. |
|
|
|
We mention get_user_id_or_ip in the above section, but we probably should include its usage here (and perhaps also in the … |
|
|
|
Let's add the from djblets.auth.ratelimit import get_user_id_or_ip line to this example too. |
|