Verified Commit e2ed1e43 authored by David Haynes's avatar David Haynes 🙆
Browse files

Rate limit anons @ 1000/day

- easy, thanks DRF
parent e488a0c1
......@@ -262,7 +262,14 @@ REST_FRAMEWORK = {
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
]
],
# http://www.django-rest-framework.org/api-guide/throttling/#throttling
'DEFAULT_THROTTLE_CLASSES': (
'rest_framework.throttling.AnonRateThrottle',
),
'DEFAULT_THROTTLE_RATES': {
'anon': '1000/day',
}
}
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment