diff --git a/stude/config/settings.py b/stude/config/settings.py index 450d3f2..07721d2 100644 --- a/stude/config/settings.py +++ b/stude/config/settings.py @@ -141,6 +141,21 @@ REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework_simplejwt.authentication.JWTAuthentication', ), + 'DEFAULT_THROTTLE_CLASSES': [ + + 'rest_framework.throttling.AnonRateThrottle', + + 'rest_framework.throttling.UserRateThrottle' + + ], + + 'DEFAULT_THROTTLE_RATES': { + + 'anon': '360/min', + + 'user': '1440/min' + + }, 'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema', }