Browse Source

Fix: Should enable token auth in DRF

pull/323/head
winkidney 2 years ago
parent
commit
18bda6dfd1
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      pinry/settings/base.py

+ 4
- 0
pinry/settings/base.py View File

@@ -164,4 +164,8 @@ REST_FRAMEWORK = {
'URL_FIELD_NAME': DRF_URL_FIELD_NAME,
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
'PAGE_SIZE': API_LIMIT_PER_PAGE,
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
]
}

Loading…
Cancel
Save