ajouter api order & both token and session
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m41s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m41s
This commit is contained in:
@@ -74,10 +74,15 @@ INSTALLED_APPS += ('rest_framework', 'rest_framework.authtoken',)
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||
'rest_framework.authentication.TokenAuthentication',
|
||||
'rest_framework.authentication.SessionAuthentication',
|
||||
],
|
||||
'DEFAULT_PERMISSION_CLASSES': [
|
||||
'rest_framework.permissions.IsAuthenticated',
|
||||
],
|
||||
'DEFAULT_FILTER_BACKENDS': [
|
||||
'django_filters.rest_framework.DjangoFilterBackend',
|
||||
'rest_framework.filters.OrderingFilter',
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user