Files
api.digisnaxx/config/settings/restframework.py
2025-10-11 21:43:11 -05:00

19 lines
711 B
Python

REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],
'DEFAULT_AUTHENTICATION_CLASSES': (
# 'durin.auth.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',
),
'DEFAULT_PERMISSION_CLASSES': (
# 'rest_framework.permissions.IsAuthenticated',
),
# "DEFAULT_THROTTLE_CLASSES": ["durin.throttling.UserClientRateThrottle"],
# 'DEFAULT_THROTTLE_RATES': {
# 'anon': '50/day',
# 'platinum': '5000/day',
# 'gold': '1000/day',
# 'silver': '250/day',
# 'free': '50/day',
# },
}