Skip to main content

Modify Django default User to use email as unique identifier with single name

Project description

Django Basic Email User

Used to replace default Django User model with 'email', instead of the 'username', as the unique identifer. Also removes ['username', 'first_name', 'last_name'] fields and adding a 'name' field (required).

The Django admin panel is customised to accommodate these changes, along with the User forms basic_email_user.forms.CustomUserCreationForm and basic_email_user.forms.CustomUserChangeForm

Simply add basic_email_user to your installed apps, configure the AUTH_USER_MODEL, and run the migrations

INSTALLED_APPS = [
    ...
    'basic_email_user'
]

AUTH_USER_MODEL = 'basic_email_user.User'

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

django_basic_email_user-0.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file django_basic_email_user-0.1.tar.gz.

File metadata

  • Download URL: django_basic_email_user-0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for django_basic_email_user-0.1.tar.gz
Algorithm Hash digest
SHA256 f28b0ba21c9ed0c69fe2892692814b9efcc205435780457a3041cf1c38dda9f3
MD5 c6e356f036c78429f68048aa1685ff37
BLAKE2b-256 6fd277bbda6542baaa4833b9ccef6df0ed858168f53d377ba7881ac1ee7cd660

See more details on using hashes here.

Supported by

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