python - How do you find the login provider in Django-Allauth? -


I have seen the code in the answer accepted for this question:

< P> But when I run a template with {{user.get_provider}}, nothing shows up. I was hoping to call it "LinkedIn Oath 2" or maybe "Original" (They have two ways to enter me.)

Do you need to make a template call? Other template items are working properly, like account.get_avatar_url.

The user profile in my knowledge that did not use the credentials to establish the current session I did not know, nor do I know that a list of the related credential type of a particular account automatically comes into the user context object (I'm not sure which question you were trying to get from ).

You can use Python & amp; Export these references For example, see the Social Account / Connection template that comes with django-allauth.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -