jsocol / django-ratelimit

Cache-based rate-limiting for Django
https://django-ratelimit.readthedocs.io/en/latest/
Other
1.07k stars 187 forks source link

Update `usage.rst` in document #320

Open fanrenkong opened 5 months ago

fanrenkong commented 5 months ago

In the "Using Django Ratelimit" section of the original document, it is explained that the decorator can limit HTTP methods. ratelimt.All represents all HTTP methods, and ratelimit.UNSAFE represents ('POST', 'PUT', 'PATCH', 'DELETE'). However, when upgrading from version 3.x to 4.0, imports should be renamed from from ratelimit to from django_ratelimit, so the document needs to be updated.