Metadata-Version: 2.4
Name: fyndata-django-accounts
Version: 0.18.0
Summary: Reusable Django app to replace the default Django user (account) model.
Author-email: "Fyndata (Fynpal SpA)" <no-reply@fyndata.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/fyndata/fyndata-django-accounts
Project-URL: Changelog, https://github.com/fyndata/fyndata-django-accounts/blob/develop/HISTORY.rst
Keywords: fyndata-django-accounts
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django :: 4.2
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: Django>=4.2
Dynamic: license-file

=============================
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
