1. write a new User Model, it like django.contrib.auth.models.User
2. write a new backend , like django.contrib.auth.backends.ModelBackend
3. modify settings.py , add
AUTHENTICATION_BACKENDS=('myproject.myapp.backends.MyBackend' ,)
http://docs.djangoproject.com/en/dev/topics/auth/#authenticatio
Folks,
Thought I might put it out there. I mean technically this is not
limited to django. I need to extend the
django.contrib.auth.models.User class (adding an extra field, making
the email field unique and increasing the length of the username
field).
Now what are your thoughts on doing t
2 matches
Mail list logo