阅读背景:

使用Django中的电子邮件地址或用户名登录用户

来源:互联网 

I am trying to create an auth backend to allow my users to log in using either their email address or their username in Django 1.6 with a custom user model. The backend works when I log in with a user name but for some reason does not with an email. Is there something I am forgetting to do?I am trying to create an auth backend to allow




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: