Skip to content

Commit

Permalink
fix: rest_framework.authtoken in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 28, 2024
1 parent 31277c2 commit e3b39c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uniticket/tests/settingslocal.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

# Django Rest
'rest_framework',
# 'rest_framework.authtoken',
'api_rest',

# Django channels and chat
Expand Down Expand Up @@ -68,7 +69,7 @@

REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication',
'api_rest.authentication.AuthorizationToken',
'rest_framework.authentication.SessionAuthentication',
],
'DEFAULT_PERMISSION_CLASSES': [
Expand Down
1 change: 1 addition & 0 deletions uniticket/uni_ticket_project/settingslocal.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ INSTALLED_APPS = [

# Django Rest
'rest_framework',
# 'rest_framework.authtoken',
'api_rest',

# Django channels and chat
Expand Down

0 comments on commit e3b39c2

Please sign in to comment.