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 git+https://github.com/endthestart/django-custom-auth#egg=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.tar.gz (6.0 kB view hashes)

Uploaded Source

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