A simple Django app for account managemnt
Project description
DON’T USE ME. I’M BEING USED INTERNALLY ONLY.
Django-acc: Another reusable DjangoRestFramework account management application
Installation
pip install django-acc
Requirements
django >= 2.0
djangorestframework >= 3.7.7
Configurations
settings.py
Add rest_framework, rest_framework.authtoken, django_acc to INSTALLED_APPS
Set
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.TokenAuthentication', ), 'DEFAULT_PERMISSON_CLASSES': ( 'rest_framework.permissions.IsAuthenticated' ) }
urls.py
Add path('accounts/', include('django_acc.urls')) to urlpatterns in your project’s urls.py
Features
api views for creating users (‘/users/’) and logging in users (‘/login/’)
Profile mamangement:
Every user has an associated profile which provide:
name
Organization management
Default organization with the same name for all account
Concepts
Organization An organization is a group of accounts. It’s optional to create a new organization, but when a new user is created, a default organization with the same name is also created.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for django_acc-0.0.5.dev8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a48ed0f438f287c005f8d98983a093620481a1a2a606d66d24e235e94918e0e |
|
MD5 | 114d78342e9e37b2a95d1ef250446ff2 |
|
BLAKE2b-256 | b450470dff74c58992f18473643472828a576d0050252d3970629ce7d55620bd |