Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I cant quite understand what you have in mind. However, take this into account:</p> <p>1 Userena provides abstract models to be connected with user. using the example from the source:</p> <pre><code>from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from userena.models import UserenaLanguageBaseProfile import datetime class Profile(UserenaLanguageBaseProfile): """ Default profile """ GENDER_CHOICES = ( (1, _('Male')), (2, _('Female')),) user = models.OneToOneField(User, unique=True, verbose_name=_('user'), related_name='profile') gender = models.PositiveSmallIntegerField(_('gender'), choices=GENDER_CHOICES, blank=True, null=True) website = models.URLField(_('website'), blank=True, verify_exists=True) location = models.CharField(_('location'), max_length=255, blank=True) birth_date = models.DateField(_('birth date'), blank=True, null=True) about_me = models.TextField(_('about me'), blank=True) </code></pre> <p>As you can see userena provides an abstract class that has the user as a one to one field. </p> <p>On the other hand, django-social-auth knows how to authenticate with the different social services and populates the table auth_user in the database. Other tables altered by django-social-auth are django-session and social_auth_usersocialauth. This means that django social auth knows how to authenticate, takes care of sessions and aggregates extra data such as tokens.</p> <p>If what you have in mind is just to use userena to add extra data to the user this can be done in a <a href="https://github.com/pennersr/django-allauth" rel="nofollow">simpler form</a>. </p> <p>I could say use userena if:</p> <ul> <li>You need mugshots (images)</li> <li>You need to add language to each user</li> <li>You need to use https</li> <li>You need to confirm the accounts via email (this kinda collides with using social auth, no?)</li> <li>Need some basic administration of user permissions for profiles.</li> </ul> <p>update: If you want to have both auth, take a look at this <a href="https://github.com/pennersr/django-allauth" rel="nofollow">nice project</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload