ajouter api order & both token and session
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m41s

This commit is contained in:
2024-07-28 15:34:38 +02:00
parent 067a876e7c
commit 37f86d5db1

View File

@@ -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',
]
}