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.3

  • 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.3.tar.gz (104.6 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.3-py3-none-any.whl (167.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djaodjin_signup-0.11.3.tar.gz
  • Upload date:
  • Size: 104.6 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.3.tar.gz
Algorithm Hash digest
SHA256 9bf5afd6f0a4ea571348c1003c58479d96bd75af30b2c4fdfbf06ee5d27813d4
MD5 14d9734894f7d7bc54687f61890b27d2
BLAKE2b-256 eca46f6a81b8dbaf1a2b7ae127917390809e8feec11a9ddd24376a8aebad2a54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for djaodjin_signup-0.11.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0e2be9fd7cd939b48f66365e592672b66dc2b53885890d22c88dd06381b559a4
MD5 cdb5babbec391a4ec3e91c8a8b218cee
BLAKE2b-256 7bb42eb7fe4826591bb4de34e515fd15456491fcbe8bc9e502dc4e2c59efaf21

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