If you are working with Django, then almost all the information you need should
be located at
http://psa.matiasaguirre.net/docs/configuration/django.html.
I said almost since there are important bits in the main configuration section
http://psa.matiasaguirre.net/docs/configuration/settings.html like "Keys and
secrets".
From Paulo emails I think that most of the confusion comes from the
inexperience with Django and the advanced stuff that this application depends
on like custom user models, middlewares and context processors.
Of course that PSA docs could, should and must be improved, and part of the
issue is that these docs aren't written to newer Django adopters (which should
be taken into account too).
There are many things to improve the library, like code, utilities and docs and
I'm working hard on them, and any contribution is welcome. I've planed some
screencasts detailing the process to setup the app for a while, but no time so
far.
Paulo and David, would you like to join to an IRC session or maybe a Google
Hangout to do an step by step guide?
Thanks,
Matías
Excerpts from David Koppstein's message of 2013-10-22 23:29:09 -0200:
> +1. I appreciate the work that's been done so far, but it's still very
> confusing. After a lot of trial and error I managed to install the models,
> but it's unclear as to how to integrate them with the rest of the website
> in any meaningful way, i.e. to get a login screen.
>
> On Thursday, October 10, 2013 7:06:01 PM UTC-4, Paulo Eduardo Neves wrote:
> >
> > Hi,
> > I'm trying to configure python-social-auth to my django site, but the
> > installation instructions are really lacking. I'm full of doubts. I'd like
> > to narrate my lost afternoon. Maybe someone can help me and improve the
> > experience for new developers.
> >
> > I want to configure Facebook, Google and email registration to my hobby
> > site. Later I'd like to integrate it with the already existent user
> > accounts that were created with another web framework. The site has just
> > one section using django, but this is a first and crucial step to migrate
> > everything. I've just upgraded my Django to version 1.5.4.
> >
> > I'm an experienced python developer, but almost a newbie in Django, and a
> > complete newbie in OAuth.
> >
> > First, I've thought to install django-social-auth, but the docs say that
> > it is deprecated and that I should use python-social-auth.
> >
> > Ok, I've installed it in my virtualenv with "pip install
> > python-social-auth". Version 0.1.14. I've got new files under my
> > lib/site-packages. Now the first confusion. The Get A Copy<
http://psa.matiasaguirre.net/docs/installing.html#get-a-copy> has
> > some "and" and "or" instructions without parentheses. If I had to review a
> > code like this, I'd ask for some parentheses to avoid ambiguity. I decided
> > to just execute the pip install and follow on.
> >
> > Now, there is the settings section:
> >
http://psa.matiasaguirre.net/docs/configuration/settings.html
> >
> > I really don't know which options have sensible defaults and which ones I
> > have to fill. BTW, I don't even know where I have to edit these setting. I
> > believe they should be set in the project/settings.py file.
> >
> > Even worse are the authentication backends
> >
http://psa.matiasaguirre.net/docs/configuration/settings.html#authentication-backends
> > There isn't a list with all of them. I've found the modules in
> > lib/site-packages/social/backends, but I have to enter in each one to
> > discover the class name I should use. I also have no idea about the
> > advantages or disadvantages of GoogleOAuth, GoogleOAuth2 or GoogleOpenId.
> > To get the key and secret inside Google site is really confusing. Facebook
> > is a little better, but I'm not really sure if all the necessary options
> > are filled in their site.
> >
> > Then we get in the User Model section:
> >
> >> UserSocialAuth instances keep a reference to the User model of your
> >> project, since this is not know, the User model must be configured by a
> >> setting:
> >> SOCIAL_AUTH_USER_MODEL = 'foo.bar.User'
> >
> >
> > I don't believe that foo.bar.User is a correct value. Shouldn't the app
> > create this table? I'm lost here. Let's ignore it.
> >
> > The section *Tweaking some fields length *
--
Matías Aguirre (
matias...@gmail.com)