An open API service indexing awesome lists of open source software.

https://github.com/cordada/fd-django-accounts

Reusable Django app to replace the default Django user (account) model
https://github.com/cordada/fd-django-accounts

django-application django-user django-utilities library python

Last synced: over 1 year ago
JSON representation

Reusable Django app to replace the default Django user (account) model

Awesome Lists containing this project

README

          

=============================
FD Django Accounts
=============================

.. image:: https://img.shields.io/pypi/v/fyndata-django-accounts.svg
:target: https://pypi.python.org/pypi/fyndata-django-accounts
:alt: PyPI package version

.. image:: https://img.shields.io/pypi/pyversions/fyndata-django-accounts.svg
:target: https://pypi.python.org/pypi/fyndata-django-accounts
:alt: Python versions

.. image:: https://img.shields.io/pypi/l/fyndata-django-accounts.svg
:target: https://pypi.python.org/pypi/fyndata-django-accounts
:alt: License

Reusable Django app to replace the default Django user (account) model.

Documentation
-------------

The full documentation is at https://fyndata-django-accounts.readthedocs.io.

Status
-------------

.. image:: https://github.com/fyntex/fd-django-accounts/actions/workflows/ci-cd.yaml/badge.svg?branch=develop
:target: https://github.com/fyntex/fd-django-accounts/actions/workflows/ci-cd.yaml?query=branch:develop
:alt: CI status

.. image:: https://codecov.io/gh/cordada/fd-django-accounts/graph/badge.svg?token=XL0EeyLbL3
:target: https://codecov.io/gh/cordada/fd-django-accounts
:alt: Code coverage

.. image:: https://api.codeclimate.com/v1/badges/30ac22150dbf8549b989/maintainability
:target: https://codeclimate.com/github/fyntex/fd-django-accounts/maintainability
:alt: Code Climate maintainability

.. image:: https://readthedocs.org/projects/fyndata-django-accounts/badge/?version=latest
:target: https://fyndata-django-accounts.readthedocs.io/en/latest/?badge=latest
:alt: Documentation

Quickstart
----------

Install FD Django Accounts::

pip install fyndata-django-accounts

Add it to your ``INSTALLED_APPS``:

.. code-block:: python

INSTALLED_APPS = (
...
'django.contrib.auth', # Required by 'fd_dj_accounts'.
'django.contrib.contenttypes', # Required by 'django.contrib.auth'.
...
'fd_dj_accounts',
...
)

Set the following Django standard settings:

.. code-block:: python

AUTHENTICATION_BACKENDS = [
'fd_dj_accounts.auth_backends.AuthUserModelAuthBackend',
]
AUTH_USER_MODEL = 'fd_dj_accounts.User'

and the following settings created by this app:

.. code-block:: python

APP_ACCOUNTS_SYSTEM_USERNAME = 'accounts-system-user@localhost' # arbitrary value

Features
--------

* TODO

Developers
----------

See 'CONTRIBUTING.rst'.

Tests
+++++

Requirements::

make install-dev

Run test suite for all supported Python versions and run tools for
code style analysis, static type check, etc::

make test-all
make lint

(same as above, but with Docker Compose)::

make docker-compose-run-test

Check code coverage of tests::

make test-coverage
make test-coverage-report-console

Credits
-------

Tools used in rendering this package:

* Cookiecutter_
* `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage