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.20.0.tar.gz (18.5 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.20.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fyndata_django_accounts-0.20.0.tar.gz
Algorithm Hash digest
SHA256 9e815a664479b6e8c643015d8c967f3daab7bc69eee16665839d8d3eda6c5fd0
MD5 4d9cee4ca8897c815776e90e79f10f79
BLAKE2b-256 4abb2cf1e037028c43e3589ed2536c1ad996e448c25069710bcdec8836ab35a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fyndata_django_accounts-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb59db5d10e14980fd4f10f833c9127e5cd4a5d0a6c73832f9e9010594993a0b
MD5 97835e923aabfb4562b091a2c74ed0ed
BLAKE2b-256 dabfa73792589725f5c9df79d4658829615a571a4af527448c31aeea9ca17bbc

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