Implement an authentication backend that will look up the user in the old

community login system in case it's not present in the django auth one,
and if necessary create the object in the django one.
This commit is contained in:
Magnus Hagander
2009-09-16 16:43:46 +02:00
parent d69d8a422c
commit 322da0de7e
2 changed files with 44 additions and 0 deletions

View File

@ -80,6 +80,10 @@ LOGIN_URL='/account/login/'
LOGIN_REDIRECT_URL='/account/'
LOGOUT_URL='/account/logout/'
AUTHENTICATION_BACKENDS = (
'util.auth.AuthBackend',
)
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',