Django登录facebook

时间:2016-03-12 11:45:17

标签: python django facebook-login

我是Django的初学者。

我正在研究用于登录的oauth 2.0。我实际上可以注册和登录。现在,我需要实现facebook登录,然后我关注这个库。

https://github.com/PhilipGarnero/django-rest-framework-social-oauth2

导入后在我的本地主机上运行后,我收到了这些错误。我不知道哪个文件/代码有问题。我该怎么办?

oauth2_provider.AccessToken.user: (fields.E304) Reverse accessor for 'AccessToken.user' clashes with reverse accessor for 'AccessToken.user'.
HINT: Add or change a related_name argument to the definition for 'AccessToken.user' or 'AccessToken.user'.

oauth2_provider.Grant.user: (fields.E304) Reverse accessor for 'Grant.user' clashes with reverse accessor for 'Grant.user'.
HINT: Add or change a related_name argument to the definition for 'Grant.user' or 'Grant.user'.

oauth2_provider.RefreshToken.user: (fields.E304) Reverse accessor for 'RefreshToken.user' clashes with reverse accessor for 'RefreshToken.user'.
HINT: Add or change a related_name argument to the definition for 'RefreshToken.user' or 'RefreshToken.user'.

provider.AccessToken.user: (fields.E304) Reverse accessor for 'AccessToken.user' clashes with reverse accessor for 'AccessToken.user'.
HINT: Add or change a related_name argument to the definition for 'AccessToken.user' or 'AccessToken.user'.

provider.Grant.user: (fields.E304) Reverse accessor for 'Grant.user' clashes with reverse accessor for 'Grant.user'.
HINT: Add or change a related_name argument to the definition for 'Grant.user' or 'Grant.user'.

provider.RefreshToken.user: (fields.E304) Reverse accessor for 'RefreshToken.user' clashes with reverse accessor for 'RefreshToken.user'.
HINT: Add or change a related_name argument to the definition for 'RefreshToken.user' or 'RefreshToken.user'.

0 个答案:

没有答案