Skip to content

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
newsedative authored Jul 23, 2024
1 parent fc088dd commit 75f9e21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/mysite/mysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
]

REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.SessionAuthentication',
],
'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
}

Expand Down

0 comments on commit 75f9e21

Please sign in to comment.