19 lines
711 B
Python
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',
|
||
|
|
# },
|
||
|
|
}
|