Skip to main content

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

Project description

PyPI package version Python versions 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

CI status Code coverage Code Climate maintainability Documentation

Quickstart

Install FD Django Accounts:

pip install fyndata-django-accounts

Add it to your INSTALLED_APPS:

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:

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

and the following settings created by this app:

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fyndata_django_accounts-0.18.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fyndata_django_accounts-0.18.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file fyndata_django_accounts-0.18.0.tar.gz.

File metadata

  • Download URL: fyndata_django_accounts-0.18.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.19

File hashes

Hashes for fyndata_django_accounts-0.18.0.tar.gz
Algorithm Hash digest
SHA256 8f1bfddfa4cd8bed532e02240555c0a23bb7bf5e386ab24b63f7211245bdc104
MD5 d2f575cbf8c21f50894851033d2c5f5f
BLAKE2b-256 8f0fdde5771054e184d16daad343188bfc95cf50f7105588c0165499117a20ff

See more details on using hashes here.

File details

Details for the file fyndata_django_accounts-0.18.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fyndata_django_accounts-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06580bbdeab28e254fdd0159ef52f0ac611e9907b6339ef2d758f00ea65d4af4
MD5 f119075d27c5b87724899218e8c6d8ac
BLAKE2b-256 9d0bf6e6328661bb1025df2b0b3caf141348f5d3951fe315c0f23c8eb7073630

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page