Skip to main content

django-user-unique-email

Reusable User model with required unique email field and mid-project support.

It defines custom User model reusing of the original table (auth_user) if exists. If needed (when added to existing project), it recreates history of applied migrations in the correct order.

Adding to existing project

  • Backup the database

  • Ensure that any reference to User model (in your project and all third-party apps) uses ‘AUTH_USER_MODEL’ setting or ‘get_user_model’.

  • Ensure that there are no duplicit or empty emails in table ‘auth_user’.

  • Test it on a clone of your project, before you try to deploy it to production server.

Installation

pip install django-user-unique-email

Configuration

Add ‘user_unique_email’ to INSTALLED_APPS and set AUTH_USER_MODEL in settings:

# Add user_unique_email to INSTALLED_APPS
INSTALLED_APPS.append('user_unique_email')

# Custom User model
AUTH_USER_MODEL = 'user_unique_email.User'

Metadata

Release files for django-user-unique-email 0.1.1

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-user-unique-email 0.1.1
File Size Uploaded Provenance Actions
django-user-unique-email-0.1.1.tar.gz 5.7 kB Without provenance Details for django-user-unique-email-0.1.1.tar.gz

Release files / django-user-unique-email-0.1.1.tar.gz

Download URL django-user-unique-email-0.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
96267102831538df902494c474e9f6907bca9c5c903c3b5beaf9e864311e7a58
BLAKE2b-256 checksum
How to use checksums
28bc17720231a18844dc3d901c6174582bdd71a512e3ae3f679476db0c55a98c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for django-user-unique-email 0.1.1

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.1.1 This release

1 release file 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