django-newauth 1.0 documentation

django-newauth Documentation

Contents   ::   Overview  »

django-newauth Documentation

django-newauth (newauth for short) is a Django application developed at BeProud Inc. that implements authentication the right way. With newauth you can make user models that look like this:

from django.db import models

from newauth.api import UserBase

class User(BaseUser):
    full_name = models.CharField(u"Full Name", max_length=255)
    email = models.EmailField('Email Address')
    profile = models.TextField('Profile Bio', blank=True, null=True)
    avatar = models.ImageField('Avatar', upload_to='profileimg/', blank=True, null=True)

    def get_display_name(self):
        return self.full_name

    class Meta:
        db_table = 'my_user_table'
        verbose_name = u"Djangonaut"
        verbose_name_plural = u"Djangonaut"

目次:

Indices and tables

Contents   ::   Overview  »