Skip to main content

A Django app to support email-based authentication.

Project description

Mailauth is a Django authentication app to replace the default username-based authentication with an email-based authentication.

Note: Mailauth should installed & setup before any migration is created.

Quick start

  1. Install the django-mailauth authentication using pip from PyPi:

    pip install django-mailauth
  2. Add “mailauth” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
      ...
      'mailauth',
    ]
  3. Replace your default “User” model with with Mailauth’s custom user model In your settings.py module, add or update the following line:

    AUTH_USER_MODEL = 'mailauth.User'
  4. Run python manage.py makemigrations to create your first migrations.

  5. Run python manage.py migrate to apply the changes to your database tables.

  6. Start the development server and visit http://127.0.0.1:8000/admin/ to add new users (you’ll need the Admin app enabled).

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

django-mailauth-0.3.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file django-mailauth-0.3.1.tar.gz.

File metadata

  • Download URL: django-mailauth-0.3.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.20.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for django-mailauth-0.3.1.tar.gz
Algorithm Hash digest
SHA256 72ed8078182fe40f6f7dacadf3c5718f1d0f5ab85644946062de68c56d8834f4
MD5 02b673420df46bb4d99806b1cab962b6
BLAKE2b-256 968ba4ffb6774864bbdbee4883c042bf40693234d277b6334a279e57b5b466af

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