【问题标题】:django oauth request with bearer token returns "relative imports require the 'package' argument" error带有不记名令牌的 django oauth 请求返回“相对导入需要 'package' 参数”错误
【发布时间】:2017-06-08 16:04:02
【问题描述】:

我正在尝试按照本教程实施 django oauth 工具包:

https://django-oauth-toolkit.readthedocs.io/en/latest/tutorial/tutorial_03.html

但我无法通过此步骤,因为页面底部的 curl get 请求返回错误

relative imports require the 'package' argument

我完全按照说明完成了教程的第一部分,到目前为止一切正常。 我正在使用 django 1.8。

还有其他人遇到过这个问题吗?

【问题讨论】:

    标签: python django oauth django-oauth


    【解决方案1】:

    原来我使用了错误版本的 django-auth-toolkit,最新版本 1.0.0 仅支持 Django 1.10、1.11。恢复到 0.12.0 解决了我的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-16
      • 2011-04-26
      • 2023-03-13
      • 1970-01-01
      • 2013-07-21
      • 1970-01-01
      • 1970-01-01
      • 2013-03-20
      相关资源
      最近更新 更多