Add throttle settings (#223)

* Add throttle settings

Proposed API rate limit throttling. This should work directly with redis.

* Update settings.py
This commit is contained in:
Paul Hallett 2016-07-06 14:04:09 +01:00 committed by GitHub
parent 05464a2c6d
commit c4b2d52682

View file

@ -160,6 +160,12 @@ REST_FRAMEWORK = {
'PAGE_SIZE': 20,
'PAGINATE_BY': 20,
'DEFAULT_THROTTLE_CLASSES': (
'rest_framework.throttling.AnonRateThrottle',
),
'DEFAULT_THROTTLE_RATES': {
'anon': '1000/hour'
}
}
MARKDOWN_DEUX_STYLES = {