问题描述
身份验证失败:redirect_uri 必须与此应用程序的注册回调 URL 匹配。
我已经注册了我的 github 帐户,我设置的回调 url 是:http://localhost:8000/oauth/complete/github/ 和主页 url http://localhost:8000/ 但错误仍然存在.并在 settings.py LOGIN_REDIRECT_URL = 'home'
中重定向 Url我尝试了许多其他技术,请帮助我
我的urls.py
from django.contrib import admin
from django.urls import path,include
from django.conf.urls.static import static
from django.conf import settings
from developer import views
urlpatterns = [
path('admin/',admin.site.urls),path('',views.home_view,name='home'),path('profileEdit',views.profile_edit_form,name='profileEdit'),path('accounts/',include('accounts.urls')),path('<int:pk>',views.profile_view,name='profileview'),path('invites/',views.invites_view,name='invitesview'),path('invites/<int:pk>',views.inviter_view,name='inviterview'),path('oauth/',include('social_django.urls',namespace='social')),]+static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)