From b690967d5d07dfafcc649249e73a7ca8279f49b8 Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Sat, 8 Jan 2022 12:02:25 +0530 Subject: [PATCH] drfauth --- website/website/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/website/settings.py b/website/website/settings.py index 764be04..cf7ad8b 100644 --- a/website/website/settings.py +++ b/website/website/settings.py @@ -128,5 +128,9 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' REST_FRAMEWORK = { 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', - 'PAGE_SIZE': 10 + 'PAGE_SIZE': 10, + 'DEFAULT_AUTHENTICATION_CLASSES': [ + 'rest_framework.authentication.BasicAuthentication', + 'rest_framework.authentication.SessionAuthentication', + ] } \ No newline at end of file