django-ratelimit
django-ratelimit copied to clipboard
Cache-based rate-limiting for Django
So, I want to show in HTML/page the current limit of a user, how should I do that? I'm using django-ratelimit
We're having an issues using Django's database cache backend with PostgreSQL and `django-ratelimit`. We're wondering if this rings a bell with anyone. Here's a sample of the errors we're seeing...
Closed issue: https://github.com/jsocol/django-ratelimit/issues/252 I tried to reproduce this behaviour in a python:3.7 docker instance. (for platform independence) 1. Run python 3.7 docker image with shell access: `sudo docker run -it...
https://github.com/jsocol/django-ratelimit/blob/651c73074e43e6e501871baad0f1c2eb5cbbbe13/test_settings.py#L14-L17 In ref to #239, I added Django 3.2 but Django at that version added a new class: PyMemcacheCache that uses a different version of memcached called pymemcached which is...
Fixes #242 A concern I have is performance. This seems like it is importing every time the view is called. I've implemented this like the rest of the package. However,...
Fixes #241 as well * CI testing Django 3.2 ~~would actually only test Django 3.2 because GitHub actions converted 3.0 to an integer and tax didn't read it correctly (testing...
Most of the examples did not any effect on the request when they should have been rate limited. This was initially deceptive as it was not clear that nothing would...
When applying `@method_decorator(ratelimit(key='ip', rate='1/m', method='GET'), name='get')` to an entire class, there is a bit of confusion I have about the inclusion of the HTTP method. What happens if one were...
Ref #121 Just had a need to add DRF support, and something interesting that we can do is take advantage of DRF's Throttled class. The reason we can do this...