In DRF, only AllowAny permission is working.....
My Views.py class generate_course(APIView) : . . . permission_classes = (IsAuthenticated,) authentication_classes = (JSONWebTokenAuthentication,) def post ( self, request) : .... ..... .... I also define the setting.py. And also given the token in headers The postman giving the error { detail : Authentication credential were not provided. } -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcH21hXUdT%2Bm%2BvnQ0oRQTh-6N1cJbSWYDxHuiNOXkM4DwQ%40mail.gmail.com.