Skip to main content

Django app for user authentication

Project description

DjaoDjin-Signup

PyPI version

This repository contains a Django App for user authentication (intended as a replacement for the django.contrib.auth.views pages), and user account pages.

Major Features:

  • HTML forms and API-based authentication
  • Cookies, JWT, API Keys
  • OTP codes

This project contains bare bone templates which are compatible with Django and Jinja2 template engines. To see djaodjin-signup in action as part of a full-fledged subscription-based session proxy, take a look at djaoapp.

Install

Add the signup urls to your urlpatterns and EmailOrUsernameModelBackend to the settings AUTHENTICATION_BACKENDS.

urls.py:

    urlpatterns = ('',
        (r'^api/', include('signup.urls.api')),
        (r'^', include('signup.urls.views')),

    )

settings.py:

    AUTHENTICATION_BACKENDS = (
        'signup.backends.auth.EmailOrUsernameModelBackend',
        'django.contrib.auth.backends.ModelBackend'

    )

Development

After cloning the repository, create a virtualenv environment, install the prerequisites, create and load initial data into the database, then run the testsite webapp.

$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -r testsite/requirements.txt
$ make vendor-assets-prerequisites
$ make initdb
$ python manage.py runserver

# Browse http://localhost:8000/

Release Notes

Tested with

  • Python: 3.12, Django: 5.2 (LTS)
  • Python: 3.14, Django: 6.0 (next)
  • Python: 3.10, Django: 4.2 (legacy)
  • Python: 3.9, Django: 3.2 (legacy)

0.11.4

  • removes dependency on jQuery for UI components
  • sets created_at correctly when importing Activity

previous release notes

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

djaodjin_signup-0.11.4.tar.gz (104.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djaodjin_signup-0.11.4-py3-none-any.whl (167.3 kB view details)

Uploaded Python 3

File details

Details for the file djaodjin_signup-0.11.4.tar.gz.

File metadata

  • Download URL: djaodjin_signup-0.11.4.tar.gz
  • Upload date:
  • Size: 104.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.19

File hashes

Hashes for djaodjin_signup-0.11.4.tar.gz
Algorithm Hash digest
SHA256 80bf153e4e0f67d612dbe318ab25cf21812638bd3d6ac2e8c228d299ba1df8dc
MD5 93fe6fe77f3a91117f49de1cf1bbe8e0
BLAKE2b-256 377ed30eaf3af45e0d42371c8b739c4047557ebc56991c52448abba12f9d89e5

See more details on using hashes here.

File details

Details for the file djaodjin_signup-0.11.4-py3-none-any.whl.

File metadata

File hashes

Hashes for djaodjin_signup-0.11.4-py3-none-any.whl
Algorithm Hash digest
SHA256 87cd69511d9b2aaf775c51dd26c5b691d52ab823bd36c0f8dd7f40eaac38259c
MD5 cb51a3be8e15895b9c7fdaf3e208a033
BLAKE2b-256 22250e7d24072fc9c8142d6bd74ced69fcf5045cb13bcf4a052eec0a7f137ba3

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