Skip to main content

django-min-custom-user

A project with a mininum fields Django Custom User

How to use

Install the lib

pip install django_min_custom_user

Create an app:

python manage.py custom_user_app

Add the app to INSTALLED_APPS on settings.py:

INSTALLED_APPS = [
    ...,    
    'custom_user_app',
]

Create your custom User:

from django_min_custom_user.models import MinAbstractUser


class User(MinAbstractUser):
    pass

This user has all fields from regular Django users but username and last_name.

Set your customized User on DJango settings.py:

AUTH_USER_MODEL = 'custom_user_app.User'

Customize also your User Admin:

from django_min_custom_user.admin import MinUserAdmin


class UserAdmin(MinUserAdmin):
    pass

Now run and apply migration:

python manage.py makemigrations
python manage.py migrate

Check django_project_ex for an example of Django project using above configurations.

Metadata

Release files for django-min-custom-user 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-min-custom-user 0.2.0
File Size Uploaded Provenance Actions
django_min_custom_user-0.2.0.tar.gz 6.0 kB Without provenance Details for django_min_custom_user-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-min-custom-user 0.2.0
File Interpreter ABI Platform Actions
django_min_custom_user-0.2.0-py3-none-any.whl Python 3 none any Details for django_min_custom_user-0.2.0-py3-none-any.whl

Total release size: 13.7 kB

Release files / django_min_custom_user-0.2.0.tar.gz

Download URL django_min_custom_user-0.2.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
185c74a38fe46749b3d713f2e67c6e334273e8c3957b531f24e74f7aa40d750a
BLAKE2b-256 checksum
How to use checksums
8114f7435767e4e97df3c9a58de7c953d561e34b0120f90395e28fb51265cdff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.1 Linux/5.15.153.1-microsoft-standard-WSL2

Release files / django_min_custom_user-0.2.0-py3-none-any.whl

Download URL django_min_custom_user-0.2.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e32baf1c94d4f59e384346504570ae7922a4cd72ade862e44c254cafe794ee3b
BLAKE2b-256 checksum
How to use checksums
a0eb867ab846c9d9e481b99bf3c8f6b5b9831ee5d5b282e91ba191806fc94405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.1 Linux/5.15.153.1-microsoft-standard-WSL2

Security for django-min-custom-user 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page