updated settings
This commit is contained in:
19
config/settings/restframework.py
Normal file
19
config/settings/restframework.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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',
|
||||
# },
|
||||
}
|
||||
Reference in New Issue
Block a user