Hi I am trying to build an authentication system. I have added following in 
my setting.py file
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
        'rest_framework.authentication.TokenAuthentication',
    ),
    'DEFAULT_PAGINATION_CLASS': 
'rest_framework.pagination.LimitOffsetPagination'
}
And I also added decorators in my each api functional views as following
@permission_classes((IsAuthenticated,))
Now I am making request to api using token so some them are accessible but 
some get unauthorized.And these api which get unathorized are random mean 
not a particular api get unauthorized. 
Am I missing something?Please help me out here!
Thanks
Akash

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e8fd147e-6090-4805-9369-127dc3329485%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to