From b3f710db1a81a2b444dfa6a68907fb1956002f7f Mon Sep 17 00:00:00 2001 From: Jace Browning Date: Mon, 1 May 2023 09:33:12 -0400 Subject: [PATCH] Fix middleware name --- docs/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index 64d7eb1..d9c0c99 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -345,7 +345,7 @@ Middleware There is optional middleware to use a custom view to handle ``Ratelimited`` exceptions. -To use it, add ``ratelimit.middleware.RatelimitMiddleware`` to your +To use it, add ``django_ratelimit.middleware.RatelimitMiddleware`` to your ``MIDDLEWARE`` (toward the bottom of the list) and set ``RATELIMIT_VIEW`` to the full path of a view you want to use.