mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 11:30:12 +03:00
Update docs to match throttling source code
This commit is contained in:
parent
7237178fdd
commit
fcc9f1f3ab
|
@ -33,12 +33,12 @@ The default throttling policy may be set globally, using the `DEFAULT_THROTTLE_C
|
||||||
'rest_framework.throttling.UserRateThrottle'
|
'rest_framework.throttling.UserRateThrottle'
|
||||||
),
|
),
|
||||||
'DEFAULT_THROTTLE_RATES': {
|
'DEFAULT_THROTTLE_RATES': {
|
||||||
'anon': '100/d',
|
'anon': '100/day',
|
||||||
'user': '1000/d'
|
'user': '1000/day'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
The rate descriptions used in `DEFAULT_THROTTLE_RATES` may include `s`, `m`, `h` or `d` as the throttle period.
|
The rate descriptions used in `DEFAULT_THROTTLE_RATES` may be any of the following: 's', 'sec', 'm', 'min', 'h', 'hour', 'd', 'day'.
|
||||||
|
|
||||||
You can also set the throttling policy on a per-view or per-viewset basis,
|
You can also set the throttling policy on a per-view or per-viewset basis,
|
||||||
using the `APIView` class-based views.
|
using the `APIView` class-based views.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user