English 中文(简体)
我怎么能够凌驾于/延长用于jan-社会-乌思的“管道”流动?
原标题:How can I override/extend the "pipeline" flow used in django-social-auth?

This is discussed in this thread but it looks like it hasn t been documented yet.

我最后试图创造以下的Facebook联线信号流量:

  1. User connects to Facebook (such that django-social-auth gets an access token but doesn t yet create a User in Django)

  2. User is taken to a View that I ll write which will have the access token so that I can provide a registration form and include data from Facebook (e.g. "here s your Facebook profile picture, you can optionally upload a new one to use on our site")

  3. 用户点击了建立一个账户的链接,而只是在那时才建立了Django用户。

现在,我试图逐步扭转和扭转暴动——社会-乌思的消息来源,以此为手段,但如果有人能够举出一个例子,甚至能对此作出高度解释的话,那将非常麻烦。

最佳回答

https://github.com/omab/django-Social-auth/b龙虾/主管/社会_auth/backends/_init_.pypL71”rel=“noestlow” Backend init.py Let/a>

答复时第71行。

PIPELINE = setting( SOCIAL_AUTH_PIPELINE , (
             social_auth.backends.pipeline.social.social_auth_user ,
             social_auth.backends.pipeline.associate.associate_by_email ,
             social_auth.backends.pipeline.user.get_username ,
             social_auth.backends.pipeline.user.create_user ,
             social_auth.backends.pipeline.social.associate_user ,
             social_auth.backends.pipeline.social.load_extra_data ,
             social_auth.backends.pipeline.user.update_user_details ,
       ))

将社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-社会-文化

另外,在你写的信中,你可能想把社会——社会——平等——公民——假冒。

编辑:Fix链接

问题回答

暂无回答




相关问题
How to get two random records with Django

How do I get two distinct random records using Django? I ve seen questions about how to get one but I need to get two random records and they must differ.

Moving (very old) Zope/Plone Site to Django

I am ask to move data from a (now offline) site driven by Plone to a new Django site. These are the version informations I have: Zope Version (unreleased version, python 2.1.3 ) Python Version 2.1....

Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

Flexible pagination in Django

I d like to implement pagination such that I can allow the user to choose the number of records per page such as 10, 25, 50 etc. How should I go about this? Is there an app I can add onto my project ...

is it convenient to urlencode all next parameters? - django

While writing code, it is pretty common to request a page with an appended "next" query string argument. For instance, in the following template code next points back to the page the user is on: &...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

热门标签