From 509af8dda122787f1bd3f48fcce34cf2c11044fd Mon Sep 17 00:00:00 2001 From: Francesco Filicetti Date: Thu, 28 Nov 2024 15:47:28 +0100 Subject: [PATCH] fix: rest_framework.authtoken in settings --- uniticket/tests/settingslocal.py | 3 ++- uniticket/uni_ticket_project/settingslocal.py.example | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/uniticket/tests/settingslocal.py b/uniticket/tests/settingslocal.py index 8cbf635..e6f60f7 100644 --- a/uniticket/tests/settingslocal.py +++ b/uniticket/tests/settingslocal.py @@ -40,6 +40,7 @@ # Django Rest 'rest_framework', + 'rest_framework.authtoken', 'api_rest', # Django channels and chat @@ -68,8 +69,8 @@ REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [ - 'rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication', + 'rest_framework.authentication.TokenAuthentication', ], 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.IsAuthenticated' diff --git a/uniticket/uni_ticket_project/settingslocal.py.example b/uniticket/uni_ticket_project/settingslocal.py.example index 60f9b6d..9519859 100644 --- a/uniticket/uni_ticket_project/settingslocal.py.example +++ b/uniticket/uni_ticket_project/settingslocal.py.example @@ -94,6 +94,7 @@ INSTALLED_APPS = [ # Django Rest 'rest_framework', + 'rest_framework.authtoken', 'api_rest', # Django channels and chat