I am new to using Django Rest framework, i am following this tutorial Django-Rest-Framework
Instead of snippets my model consists of a userprofile as given belo
Just to let others know, I kept getting this same error and found that I forgot to include a comma in my REST_FRAMEWORK
. I had this:
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated'
),
instead of this:
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
),
The comma defines this as a one-element tuple