Python Social Auth 重定向到错误的 URL

ism*_*nni 5 python django redirect python-social-auth

我使用Python -社会-身份验证为我的Django的网站,让我们说:example.io。它正在工作。但是,在重新部署并尝试通过 Twitter 登录后,它重定向到错误的 URL,example只是,没有.io

我还尝试使用另一个 url, staging.example.io, 它仍然重定向到example, 没有stagingio

我尝试在本地部署它,所以 URL 是localhost:12345,并且它重定向到正确的 URL(到 localhost:12345 或 127.0.0.1:12345),并成功登录。

有人知道吗?

更新:我尝试使用另一个 url,例如 abc.def.com,但仍然重定向到example(没有 .io)。LinkedIn 社交身份验证也发生了这种情况。