mirror of
https://github.com/PokeAPI/pokeapi
synced 2025-02-16 12:38:25 +00:00
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:
parent
05464a2c6d
commit
c4b2d52682
1 changed files with 6 additions and 0 deletions
|
@ -160,6 +160,12 @@ REST_FRAMEWORK = {
|
||||||
'PAGE_SIZE': 20,
|
'PAGE_SIZE': 20,
|
||||||
|
|
||||||
'PAGINATE_BY': 20,
|
'PAGINATE_BY': 20,
|
||||||
|
'DEFAULT_THROTTLE_CLASSES': (
|
||||||
|
'rest_framework.throttling.AnonRateThrottle',
|
||||||
|
),
|
||||||
|
'DEFAULT_THROTTLE_RATES': {
|
||||||
|
'anon': '1000/hour'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MARKDOWN_DEUX_STYLES = {
|
MARKDOWN_DEUX_STYLES = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue