Skip to main content

Extension of Django's AbstractBaseUser for user management, using email as user.

Project description

gdmty-django-users

The app gdmty-django-users package is a Django extension that builds upon the abstract AbstractBaseUser class for use e-mail as user. And has the option to authenticate with reCaptcha token verification.

The project is maintained by Gobierno de Monterrey. You can find more about the project on its homepage or report issues on the bug tracker.

Features

  • Email-based User Identification: Utilizes email addresses as identifier for users.
  • Custom User Model: Extends Django's AbstractBaseUser to provide custom user functionality.
  • Modular Design: Designed as a reusable Django app for easy integration into projects.
  • Compatibility with Python 3.9 and later, and Django 4.1.13 and later.

Installation

$ pip install gdmty-django-users

Configuration

Add the application to your project's INSTALLED_APPS in settings.py also add the DRF_ROUTER variable.

from rest_framework import routers

INSTALLED_APPS = [
    # ...
    'gdmty_django_users',
    ...
]
DRF_ROUTER = routers.DefaultRouter()  # Necessary for the gdmty_django_users package

An example to use in your 'models.py file:

from gdmty_django_users.models import User

from django.db import models

class MyModel(models.Model):
    user = User.ForeignKey(User, on_delete=User.CASCADE)

Contributing

  • Please raise an issue/feature and name your branch 'feature-n' or 'issue-n', where 'n' is the issue number.
  • If you test this code with a Python or package version not listed above and all is well, please fork and update the README to include the Python version you used :)

Additional Notes

  • This project is maintained by Gobierno de Monterrey.
  • The project's homepage is here and issues can be reported here.

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

gdmty_django_users-24.5.5.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

gdmty_django_users-24.5.5-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file gdmty_django_users-24.5.5.tar.gz.

File metadata

  • Download URL: gdmty_django_users-24.5.5.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for gdmty_django_users-24.5.5.tar.gz
Algorithm Hash digest
SHA256 e3e68287d267940f3666e69f44bd45cb95f6ece5a5f116755c274ac7473a0931
MD5 7aefad563c78be3b5d5da86542ba2eb6
BLAKE2b-256 dd9f80a4f72c7cdcd9b5ad1f8ac4d19f4290da4876d9ba68ae9717e95e84f073

See more details on using hashes here.

File details

Details for the file gdmty_django_users-24.5.5-py3-none-any.whl.

File metadata

File hashes

Hashes for gdmty_django_users-24.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c38d9da837974b3cf805fb83d441ff7ef2dc40a44f49486d6c10b0e4cc125835
MD5 402dd9d79825858bed77a2e596863101
BLAKE2b-256 f07495a1cbdf8c701e7bef96be65db5deff097ab1d90d5fdf83880fb96c7f6c9

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