Fix setting.py to allow permission
This commit is contained in:
@ -225,7 +225,7 @@ REST_FRAMEWORK = {
|
||||
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': ('knox.auth.TokenAuthentication', ),
|
||||
'DEFAULT_PERMISSION_CLASSES': [
|
||||
'rest_framework.permissions.IsAuthenticated',
|
||||
'rest_framework.permissions.AllowAny', # デフォルトは認証不要に変更
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user