diff --git a/core/settings.py b/core/settings.py index 1960a21..156ee1b 100644 --- a/core/settings.py +++ b/core/settings.py @@ -214,6 +214,20 @@ MEDIA_URL = '/media/' ############################################################# ############################################################# +REST_FRAMEWORK = { + 'DEFAULT_THROTTLE_CLASSES': [ + 'rest_framework.throttling.AnonRateThrottle', + 'rest_framework.throttling.UserRateThrottle' + ], + 'DEFAULT_THROTTLE_RATES': { + 'anon': '100/day', + 'user': '1000/day' + } +} + +############################################################# +############################################################# + # If route isnt found, try again with appended slash APPEND_SLASH = True