get_usage on class based view #310
Replies: 1 comment
-
Hi @YazidKurdi —I believe the issue here is that the
@ratelimit(key='user_or_ip', rate='2/d', group='mygroup')
def view1(request):
"""do stuff here"""
@ratelimit(key='user_or_ip', rate='2/d', group='mygroup')
def view2(request):
"""do other stuff""" When
I hope that helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a class based view that is currently being limited successfully, however I am unable to run get_usage() returning None as the result, is this the correct way of using this method?
Appreciate your response
Beta Was this translation helpful? Give feedback.
All reactions