Django multiple User profiles/subprofiles

前端 未结 3 875
别那么骄傲
别那么骄傲 2020-12-30 17:42

I am trying to create an intranet/extranet with internal/external user-specific profiles, with a common generic profile. I\'ve looked at several answers on this site, but n

3条回答
  •  庸人自扰
    2020-12-30 18:20

    Please check this excellent article that describes how to inherit from the User class and add your own information. For me, at least, this clearly seems to be the way to go: http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/

    Using this method one should easily be able to add multiple user types to their Django application.

提交回复
热议问题