【发布时间】:2016-07-16 23:30:29
【问题描述】:
我的模板:
{{ backends.associated }}
{{ backends.not_associated }}
{{ backends.backends }}
{{ status_page }}
{% if page_status == 'login' %}
{% for soc in backends.backends %}
<form action="{% url 'social:disconnect' soc %}" method="post">
{% csrf_token %}
<button type="submit">Disconnect</button>
</form>
{% endfor %}
{% endif %}
{% if page_status == 'start' %}
<p>Стартовая страница</p>
{% for soc in backends.backends %}
<a href="{% url 'social:begin' soc %}">{{ soc }}</a>
{% endfor %}
{% endif %}
我可以登录 Steam。但我无法断开连接。我什么都试过了。 错误:
NotAllowedToDisconnect at /disconnect/steam/
No exception message supplied
Request Method: POST
Request URL: https://sheltered-sea-35879.herokuapp.com/disconnect /steam/
Django Version: 1.9.7
Exception Type: NotAllowedToDisconnect
Exception Location: /app/.heroku/python/lib/python3.5/site-packages /social/pipeline/disconnect.py in allowed_to_disconnect, line 7
Python Executable: /app/.heroku/python/bin/python
Python Version: 3.5.2
出现此错误后,我必须从 Steam 中注销。我在文档中找不到信息。
【问题讨论】:
标签: python django steam python-social-auth