Extending the User model with custom fields in Django

后端 未结 13 1746
别那么骄傲
别那么骄傲 2020-11-21 23:28

What\'s the best way to extend the User model (bundled with Django\'s authentication app) with custom fields? I would also possibly like to use the email as the username (fo

13条回答
  •  佛祖请我去吃肉
    2020-11-22 00:00

    New in Django 1.5, now you can create your own Custom User Model (which seems to be good thing to do in above case). Refer to 'Customizing authentication in Django'

    Probably the coolest new feature on 1.5 release.

提交回复
热议问题