Metadata-Version: 2.0
Name: django-acc
Version: 0.0.5.dev8
Summary: A simple Django app for account managemnt
Home-page: UNKNOWN
Author: D.V. Nguyen
Author-email: dv@dvnguyen.com
License: MIT
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.5
Requires-Dist: django (>=2.0)
Requires-Dist: djangorestframework (>=3.7.7)

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.


