對於我的應用程序集成與高音訪問微博,我按照這個博客:https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html登錄並訪問在Django應用嘰嘰喳喳的鳴叫創建問題
我想我已經集成的應用軟件,但在這裏,我的錯誤越來越:
NoReverseMatch at /oauth/complete/twitter/
Reverse for 'home' not found. 'home' is not a valid view function or pattern name.
Request Method: GET
Request URL: http://52.66.181.149:2000/oauth/complete/twitter/?redirect_state=X0zmjSh0yJi6eGwwfXvxXNmKKEwoouLc&oauth_token=tSrVkgAAAAAA2fYTAAABXuuIht0&oauth_verifier=sZg5nxlmdbqDBTlnuDLtmCOWxFKDnyVH
Django Version: 1.11.5
Exception Type: NoReverseMatch
Exception Value:
Reverse for 'home' not found. 'home' is not a valid view function or pattern name.
Exception Location: /usr/local/lib/python2.7/dist-packages/django/urls/resolvers.py in _reverse_with_prefix, line 497
Python Executable: /usr/bin/python
Python Version: 2.7.12
Python Path:
['/home/ubuntu/Personality',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
Server time: My time
完整的追溯是在這裏:Trace Back Gist
另外,我想知道以下兩兩件事:
1)缺少什麼導致此問題?
2)我能做些什麼來收集django的推文並將其用作NLP數據集?
請讓我知道。
這是我特意打電話吧:
<form method="post" action="/fileprocess/" enctype="multipart/form-data" class="box has-advanced-upload" id="sendfile">
<div id = "loginBtn" class="fb-login-button" data-max-rows="1" data-size="large" data-button-type="continue_with" data-show-faces="false" data-auto-logout-link="true" data-use-continue-as="true" onlogin = "javascript:login()"></div>
<a href="{% url 'social:begin' 'twitter' %}">Login with Twitter</a>
您的錯誤顯然與收集推文無關。你應該爲你的問題選擇一個更合適的標題,並且搜索關於你實際得到的錯誤的許多以前的許多問題。 –
@DanielRoseman感謝您的建議。 –