Groups
Groups
Sign in
Groups
Groups
Django-Chinese
Conversations
About
Send feedback
Help
如果想以email为用户名怎么做呢?
0 views
Skip to first unread message
euglena
unread,
Aug 21, 2008, 4:32:11 AM
8/21/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django-Chinese
一个看似简单的问题,不过对初学者也造成了障碍。想基于内建的User模型自己做一个app,但很多内建的auth、admin什么的可能都要改,于是
决定小改一下User模型的源码,本以为简单的把username字段的验证改成isValidEmail就可以了,可是删掉所有auth相关的表,再
syncdb,打开管理界面,发现User仍然是isAlphaNumeric验证。
请问,如何让django重新加载这部分代码呢?或者还有什么更好的方法实现以email作为用户名?谢谢!
Reply all
Reply to author
Forward
0 new messages