Skip to main content

authentication v1

settings.py

Default redirect URLs (Can be overridden in the main Django project)

AUTH_REDIRECT_SIGNUP = "verify_otp" # After successful signup AUTH_REDIRECT_LOGIN = "dashboard" # After successful login AUTH_REDIRECT_OTP_VERIFIED = "dashboard" # After OTP verification AUTH_REDIRECT_LOGOUT = "login" # After logout

AUTH_EMAIL_SENDER = "support@mywebsite.com"

EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "smtp.gmail.com" EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_USER = "your-email@gmail.com" # Your Gmail Address EMAIL_HOST_PASSWORD = "your-app-password" # App Password from Google DEFAULT_FROM_EMAIL = EMAIL_HOST_USER

run migrations

python manage.py makemigrations authentication python manage.py migrate

project urls

from django.contrib import admin from django.urls import path, include

urlpatterns = [ path('accounts/', include('authentication.urls')), # add app urls path("admin/", admin.site.urls), ]

Release files for authentic-django 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for authentic-django 0.2
File Size Uploaded
authentic_django-0.2.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for authentic-django 0.2
File Interpreter ABI Platform
authentic_django-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / authentic_django-0.2.tar.gz

Download URL authentic_django-0.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7e8bff3f7044ca4d445cca8a2fe5f929ff3a8f55b2963539ce7f0ca7dc67f357
BLAKE2b-256 checksum
How to use checksums
ae653ab57fc78e74889f5e18fa8c7bedf39d91a848ffb71f4579036533cec88d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / authentic_django-0.2-py3-none-any.whl

Download URL authentic_django-0.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b039771b3e987e4cb0431b535dda8673f354fb47631772b4e02758da5d78f45e
BLAKE2b-256 checksum
How to use checksums
9afb8fe6abc3050acccb58582ce5e28f6438b668a2ec3082a958e992b34eb955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page