def post(self, request, *args, **kwargs):
        try:
            request_json = json.loads(smart_text(request.body))
        except __HOLE__:
            return self.render_bad_request_response()

        form = JSONWebTokenForm(request_json)

        if not form.is_valid():
            return self.render_bad_request_response({'errors': form.errors})

        context_dict = {
            'token': form.object['token']
        }

        return self.render_response(context_dict)
dataset/ETHPy150Open jpadilla/django-jwt-auth/jwt_auth/views.py/ObtainJSONWebToken.post