我从Django的控制台收到了错误消息。我为什么会犯这个错误?我读了本教程的书,也试过了。
"GET /accounts/github/login/callback?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=cpybsYqLpapp HTTP/1.1" 301 0发布于 2019-02-25 12:21:45
尝试将重定向url更改为:http://127.0.0.1:8000/accounts/github/。
使用http,它就会工作。您可以通过在web浏览器中放置任何错误的url值来获取所有列表,从而显示应用程序中的url列表。选这么多的那个。您可以按照以下链接中的步骤操作:https://wsvincent.com/django-allauth-tutorial/
并将我提供的链接放在github回调url.中。
https://stackoverflow.com/questions/50189363
复制相似问题