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
==================
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-custom-auth-0.1.3.tar.gz.
File metadata
- Download URL: django-custom-auth-0.1.3.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81241c259c74d478665a8261bec366c2ce3a56f2031027addc819d38be543916
|
|
| MD5 |
eaa64149f414b274b5c7209b1ca39c56
|
|
| BLAKE2b-256 |
1c9e84ef5c2af56c26c80c385c2d98a9ad02b6b6e7fa5d3198d40525c8d4ce32
|