Django 在/auth/login/twitter处键入错误/
我一直在尝试将社交网络的登录添加到我的django项目中。它在Facebook上运行良好,但Twitter已经崩溃 当我尝试使用Twitter进行身份验证时,我不断收到以下错误Django 在/auth/login/twitter处键入错误/,django,twitter,django-socialauth,Django,Twitter,Django Socialauth,我一直在尝试将社交网络的登录添加到我的django项目中。它在Facebook上运行良好,但Twitter已经崩溃 当我尝试使用Twitter进行身份验证时,我不断收到以下错误 TypeError at /auth/login/twitter/ sequence item 0: expected str instance, bytes found Request Method: GET Request URL: http://127.0.0.1:8000/auth/login/twitte
TypeError at /auth/login/twitter/
sequence item 0: expected str instance, bytes found
Request Method: GET
Request URL: http://127.0.0.1:8000/auth/login/twitter/
Django Version: 1.6.5
Exception Type: TypeError
Exception Value:
sequence item 0: expected str instance, bytes found
Exception Location: C:\Users\cdegen\face\lib\site-packages\social_auth\backends\__init__.py in fetch_response, line 708
Python Executable: C:\Users\cdegen\face\Scripts\python.exe
Python Version: 3.4.1
Python Path:
['C:/Dev/django/face',
'C:\\Program Files (x86)\\JetBrains\\PyCharm 3.4.1\\helpers\\pydev',
'C:\\Dev\\django\\face',
'C:\\Python34',
'C:\\Windows\\system32\\python34.zip',
'C:\\Python34\\DLLs',
'C:\\Python34\\lib',
'C:\\Users\\cdegen\\face',
'C:\\Users\\cdegen\\face\\lib\\site-packages']
Server time: Mon, 23 Jun 2014 08:33:39 -0400
我已将Twitter后端添加到我的身份验证后端。我有TWITTER消费者密钥和TWITTER消费者密钥集 我找到了解决办法。我使用的是django-social-auth3,它是django-social-auth的python3分支。我使用django social auth建立了一个新的VirtualVn,并且我能够使用facebook、twitter和google+进行身份验证。您能发布负责调用twitter API的代码吗?我指的是调用socialauth库的代码。我使用的是socialauth开始标记 使用登录