Everything is working on my site, except when I'm trying to log in with twitter
through python-social-auth
. It worked well on my local development server, but when I went into production, after the twitter
login, it sends the response to http://127.0.0.1:8001/complete/twitter....
.
I am using gunicorn
+nginx
without too much knowledge about it, except that i've used it for other projects without problems. Although, I have binded gunicorn --bind 127.0.0.1:8001
. Is that the problem? I tried using --bind mydomain.com:8001
but that gives me a 502 Bad Gateway
response.