Django OAuth Toolkit protected_resource用于基于类的视图

时间:2015-05-04 13:19:28

标签: django oauth-2.0 django-class-based-views class-based-views oauth2-toolkit

我想将@protected_resource()装饰器与基于类的视图一起使用。

但我收到错误:'update_card' object has no attribute 'get_full_path'

在文档中基于类的视图页面为空https://django-oauth-toolkit.readthedocs.org/en/latest/views/class_based.html

如何使用装饰器保护基于类的视图?

1 个答案:

答案 0 :(得分:1)

我自己找到了解决方案:

而不是$filecount我使用了django.views.generic.View

相关问题