Z
Z
zelsky2015-08-28 01:05:29
Django
zelsky, 2015-08-28 01:05:29

Django allauth?

Deployed a Django project on DO.
so here are the styles and the main one everything is ok.
one thing but when working with django-allauth
When I want to log in

a href ="{% provider_login_url "twitter" %}" >
                    <div class="visible-lg visible-md">
                        <i class="fa fa-twitter  fa-2x"></i>
                    </div>
                    </a>

I receive
Social Network Login Failure
An error occurred while attempting to login via your social network account.

And with the address in the form of an api server -
http://256.256.256.256:8000/accounts/twitter/login/callback/?oauth_token=aaaaaaaaaaaaaaaaaa&oauth_verifier=bbbbbbbbbbbbbbbbbbbbbbbbb

When trying to authorize with facebook - 403 is not enough csrf token although I'm loading in the page header - {% csrf_token %} set so because the authorization request comes not from the form but with the help of template tags.
The connection closes the gunicorn, but I can't figure out why.
Connection: close
Content-Type: text/html; charset=utf-8
Date: Fri, 28 Aug 2015 00:03:09 GMT
Server: gunicorn/19.3.0
Transfer-Encoding: chunked
Vary: Cookie
X-Frame-Options: SAMEORIGIN

in the logs
2015/08/27 19:11:16 [error] 3275#0: *21 connect() failed (111: Connection refused) while connecting to upstream, client:256.256.256.256, server: domain.net,
request: "GET / HTTP/1.1", upstream: " http://256.256.256.257:8000/ ", host: "domain.net"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zelsky, 2015-08-28
@zelsky

From all the tutorials, I only did it with the help of that. Trouble was in depracted gunicorn_django --bin......
https://www.digitalocean.com/community/tutorials/h...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question