All Projects → huychau → drf-registration

huychau / drf-registration

Licence: MIT license
Simple user registration package based on Django Rest Framework. DRF Registration - The easy way to generate registration RESTful APIs

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to drf-registration

drf-angular-docker-tutorial
Dockerized Django Back-end API using DRF with Angular Front-end Tutorial
Stars: ✭ 53 (+65.63%)
Mutual labels:  django-rest-framework, drf
Django Rest Registration
User-related REST API based on the awesome Django REST Framework
Stars: ✭ 240 (+650%)
Mutual labels:  django-rest-framework, registration
django-rest-framework-datatables-editor
Seamless integration between Django REST framework, Datatables and Datatables Editor.
Stars: ✭ 25 (-21.87%)
Mutual labels:  django-rest-framework, drf
django-rest-multitokenauth
An extension to Django-Rest-Frameworks Token Authentication, enabling a user to have multiple authorization tokens
Stars: ✭ 13 (-59.37%)
Mutual labels:  django-rest-framework, drf
django-ninja-extra
Django Ninja Extra - Class-Based Utility and more for Django Ninja(Fast Django REST framework)
Stars: ✭ 53 (+65.63%)
Mutual labels:  django-rest-framework, drf
django-rest-framework-recaptcha
reCAPTCHA field for Django REST framework serializers
Stars: ✭ 24 (-25%)
Mutual labels:  django-rest-framework, drf
token-authentication-django
This is django app used to explain the tutorial present on https://medium.com/@shubhambansal_89125/token-based-authentication-for-django-rest-framework-44586a9a56fb
Stars: ✭ 27 (-15.62%)
Mutual labels:  django-rest-framework
ujson drf
JSON Renderer and Parser for Django Rest Framework using the ultra fast json (in C).
Stars: ✭ 14 (-56.25%)
Mutual labels:  django-rest-framework
UserManagement
User Management Package for Neos and Flow
Stars: ✭ 37 (+15.63%)
Mutual labels:  registration
django-code-generator
Generate code from your Django models for faster development
Stars: ✭ 35 (+9.38%)
Mutual labels:  django-rest-framework
Deep-learning-model-deploy-with-django
Serving a keras model (neural networks) in a website with the python Django-REST framework.
Stars: ✭ 76 (+137.5%)
Mutual labels:  django-rest-framework
bk-user
蓝鲸用户管理是蓝鲸智云提供的企业组织架构和用户管理解决方案,为企业统一登录提供认证源服务。
Stars: ✭ 31 (-3.12%)
Mutual labels:  django-rest-framework
django-rest-witchcraft
Django REST Framework integration with SQLAlchemy
Stars: ✭ 38 (+18.75%)
Mutual labels:  django-rest-framework
YOHO
[ACM MM 2022] You Only Hypothesize Once: Point Cloud Registration with Rotation-equivariant Descriptors
Stars: ✭ 76 (+137.5%)
Mutual labels:  registration
drf-chat-server-example
A chat server example used Django REST framework with pytest
Stars: ✭ 15 (-53.12%)
Mutual labels:  drf
Footprint
Bluetooth Beacon 을 활용한 장소 기반 추억 기록 및 공유 서비스
Stars: ✭ 24 (-25%)
Mutual labels:  django-rest-framework
django-flag-app
A pluggable django application that adds the ability for users to flag(or report) your models.
Stars: ✭ 13 (-59.37%)
Mutual labels:  django-rest-framework
formica
A discord bot that collects and analyzes form data
Stars: ✭ 20 (-37.5%)
Mutual labels:  django-rest-framework
vstutils
Small framework for easy generates web-applications (SPA or Single Page Application).
Stars: ✭ 39 (+21.88%)
Mutual labels:  django-rest-framework
studyportal-nexus
Backend API for studyportal
Stars: ✭ 24 (-25%)
Mutual labels:  django-rest-framework

DRF Registration

Downloads

Simple user registration package based on Django Rest Framework. DRF Registration - The easy way to generate registration RESTful APIs.

Check the document at https://drf-registration.readthedocs.io/

Requirements

  • Django (>=2.0)
  • Django REST Framework (>=3.8.2)
  • Python (>=3.6)

Features

  • Register
  • Verify/activate account by token sent to email
  • Login use token
  • Logout
  • User profile
  • Change password
  • Reset password
  • Login by socials (Facebook, Google)
  • Set password when login by social
  • Sync user account with socials
  • HTML email configuration
  • Test coverage (98%)

Installation & Configuration

Install by use pip:

pip install drf-registration

Add drf_registration in INSTALLED_APPS

INSTALLED_APPS = [
    ...
    'rest_framework',
    'rest_framework.authtoken',
    'drf_registration',
    ...
]

Include urls of drf_registration in urls.py

urlpatterns = [
    ...
    path('/api/accounts/', include('drf_registration.urls')),
    ...
]

Settings

Set AUTHENTICATION_BACKEND for support login by multiple custom fields and check inactivate user when login:

AUTHENTICATION_BACKENDS = [
    'drf_registration.auth.MultiFieldsModelBackend',
]

You can update login username fields by change LOGIN_USERNAME_FIELDS in DRF_REGISTRATION object. Default to ['username', 'email',].

  • Set DEFAULT_AUTHENTICATION_CLASSES in REST_FRAMEWORK configuration
REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': [
        'rest_framework.authentication.TokenAuthentication',
    ],
}

Design settings

DRF_REGISTRATION = {

}

Check default settings here.

Base APIs Design

Assuming that base resource is /api/v1/accounts/

  • POST: /register/: Register new user
  • POST: /verify/: Verify account by email
  • POST: /login/: Login to the system use username/email and password
  • POST: /logout/: Logout of the system
  • GET: /profile/: Get user profile
  • PUT: /profile/: Update user profile
  • PUT: /change-password/: Change user password
  • PUT: /set-password/: Set user password when login with social account

Check more APIs Design at here.

Command line

Unit Test

make test

You can add ARGS="specific_folder/" or ARGS="specific_file.py" to run specific test cases.

Run pylint

make pylint

Build & run docs local server

make docs

Access docs server at http://localhost:8080

Clean

make clean
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].