Use custom authentication backend with admin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
"""urls.py"""
from django.conf.urls.defaults import *
from django.contrib import admin

admin.autodiscover()
admin.site.login = login_required(admin.site.login)

urlpatterns = patterns('',
    (r'^accounts/login/$', 'mycustom.auth.view'),
)

More like this

  1. Use both NTLM and Anonymous authentication with IIS by ungenio41 1 year, 6 months ago
  2. Login with email or username by zeeg 3 years, 5 months ago
  3. Email or username authentication with masquerading by petrilli 2 years, 7 months ago
  4. Log in a user without requiring credentials by SmileyChris 2 years, 8 months ago
  5. OracleAuthBackend by nosrednakram 2 years, 5 months ago

Comments

(Forgotten your password?)