You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking to do some conditional rate limiting , and I see the documentation about customizing get_usage and is_ratelimited.
It' not clear how to use these methods after customization. Do you still call them using the decorator?
Are there any examples?
The text was updated successfully, but these errors were encountered:
Hey @colinkingswood, that's for the suggestion! Can I ask what you're trying to do with them?
These methods are kind of the "escape hatch" so that people can either wrap them in their own decorators, or use them within views—e.g. to add a CAPTCHA after a certain number of failed login attempts, without strictly blocking the request.
I'm very happy to accept additions to the Cookbook section of the docs, if there is some kind of how-to example we can write.
I am looking to do some conditional rate limiting , and I see the documentation about customizing
get_usage
andis_ratelimited
.It' not clear how to use these methods after customization. Do you still call them using the decorator?
Are there any examples?
The text was updated successfully, but these errors were encountered: