Open AbdouTlili opened 4 years ago
Try to add this code on your settings.py
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication',
],
}
and add this on your urls.py
path('auth/', include('djoser.urls.authtoken')),
hi guys i'm just getting started with djoser
after doing all steps ( installing, adding apps and config ..)
when i
i get the right response
but when i try to login and get the token :
i get this :
help please