一切都在我的网站上运行,除非我试图twitter
通过python-social-auth
. 它在我的本地开发服务器上运行良好,但是当我投入生产时,twitter
登录后,它会将响应发送到http://127.0.0.1:8001/complete/twitter....
.
我在没有太多了解的情况下使用gunicorn
+ ,除了我已经将它用于其他项目而没有问题。nginx
虽然,我已经绑定了 gunicorn --bind 127.0.0.1:8001
。那是问题吗?我尝试使用--bind mydomain.com:8001
,但这给了我一个502 Bad Gateway
回应。