B
B
BogBel2015-11-13 02:35:54
Django
BogBel, 2015-11-13 02:35:54

Authorization via Google OAuth 2.0 django-allauth?

It is necessary to screw on the site authentication through Gmail. I found, supposedly, a solution in the django-allauth library, tried to install via pip or via shipment from the repository, but it all comes down to a lack of understanding.
The matter went as far as possible before getting its client id and client secret on google.
Maybe someone knows a good manual where everything is shown too clearly.
Most people refer to
www.techstricks.com/django-allauth-tutorial-step-b...
but did as it says here, there were no errors but when going all the way to accounts/login django didn't find the page.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zelsky, 2015-11-13
@zelsky

django-allauth.readthedocs.org/en/latest
Everything is extremely simple. Connect the backend in settings.py then syncdb
Already in the admin add a secret key and app id type of authorization select from the drop-down menu (the items will be those that you have registered in the backends) and then a link to authorization using google

S
Sergey Kutylev, 2015-11-13
@sakutylev

Did you forget to add it to urls.py?

from django.conf.urls import include, url, patterns

urlpatterns = patterns('',
    url(r'^accounts/', include('allauth.urls')), 
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question