Skip to main content

A simple Django app that replaces the default authentication

Project description

django-custom-auth
==================

Implements email based login with Django >= 1.5.

# Installation
pip install django-custom-auth

# Add this to your settings
INSTALLED_APPS += (
'custom_auth',
)

AUTHENTICATION_BACKENDS = ('custom_auth.auth.Authenticate',)
AUTH_USER_MODEL = 'custom_auth.User'

# URLs

url(r'^accounts/', include('custom_auth.urls')),

# Utilization in your models
user = models.ForeignKey(settings.AUTH_USER_MODEL)

# To access the user model
from django.contrib.auth import get_user_model

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-custom-auth-0.1.3.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file django-custom-auth-0.1.3.tar.gz.

File metadata

File hashes

Hashes for django-custom-auth-0.1.3.tar.gz
Algorithm Hash digest
SHA256 81241c259c74d478665a8261bec366c2ce3a56f2031027addc819d38be543916
MD5 eaa64149f414b274b5c7209b1ca39c56
BLAKE2b-256 1c9e84ef5c2af56c26c80c385c2d98a9ad02b6b6e7fa5d3198d40525c8d4ce32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page