Skip to content

A template django project with rest framework and allauth set up

Notifications You must be signed in to change notification settings

anatolio-deb/django-drf-allauth-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coverage

Django Authentication Template Project

A template with a custom user model built on top of the AbstractBaseUser. Integrates allauth and DRF providing CustomUserViewset, CustomUserSerializer, permission classes, admin classes, and following endpoints:

api/users/
api/users/<int:pk>

Plus endpoints provided by allauth. See installation instructions.

The CustomUser model has an email identifying field and, by default, does not accept a username as described in Advanced Usage.

When to use it

  • You need a custom user. Then, go to users/models.py and customize the CustomUser model to fit your needs.
  • You want to authenticate your users via email instead of a username.
  • You don't need a username at all.
  • You are happy with allauth.

Tests

  • Model: CustomUser, CustomUserManager
  • Forms: CustomSignupForm

About

A template django project with rest framework and allauth set up

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages