title: check if the user has logged in with social account - Django
body: <p>in the web site that i'm working on , I have an authetication system and I'm using django allauth at the same time so the user can login with his gmail or facebook account if he wants . how can I check in the template if the user has logged in with his facebook/gmail account ?
  i want somthing like this</p>
  <pre><code>{% if user not 'use his facebook or gmail'  %}                     
      &lt;a href=&quot;{% some url %}&quot;&gt;
         &lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; data-dismiss=&quot;modal&quot;&gt;somthing &lt;/button&gt;
        &lt;/a&gt; 
  {% endif %}
  </code></pre>