擅长:python、mysql、java
<p>我发现当前的一个解决方法是编辑views.py ds\u token\u ok函数。在第177行,ok布尔变量没有返回true。不确定这是否是会话问题。我编辑了return语句以返回True而不是ok,这使我可以打开python应用程序中的所有链接并运行所有示例</p>
<pre><code> def ds_token_ok(buffer_min=60):
# :param buffer_min: buffer time needed in minutes
#:return: true iff the user has an access token that will be good for #another buffer min
ok = "ds_access_token" in session and "ds_expiration" in session
ok = ok and (session["ds_expiration"] - timedelta(minutes=buffer_min)) > datetime.utcnow()
#comment: was return ok but I am not able to run program. Problem in line 177
return True
</code></pre>
<p>这只是在沙箱中工作的临时解决方案</p>