0

I want to create a user for my website that can submit a request form but I'm wondering which is suitable choice :

  1. To use a user object that already created
  2. Create a user model from scratch

Note: I will let the users to login in my website from the active directory

ruddra
  • 50,746
  • 7
  • 78
  • 101
Hannah
  • 65
  • 1
  • 9

1 Answers1

0

Only If your User object need more than primary attributes like Nick Name, Skype or Phone No, etc... whatever.

In this case you can extend to use your own User object by creating ...

class Profile(Model):
    user = models.ForeignKey(User)
    nike_name = models.CharField(max_length=200)

For more details User Object

Raja Simon
  • 10,126
  • 5
  • 43
  • 74
  • so Its possible to use user object for user that access the web app not only the usera who in admin page – Hannah Feb 24 '15 at 07:38
  • 1
    I think you're referring to a [custom user model](https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#auth-custom-user). <-- That link is the new recommended way of doing it. – rnevius Feb 24 '15 at 07:41
  • @rnevius No... See OP got confuse about User object that's why the answer clarify. But I too aware that `AUTH_USER_MODEL` is best for Substituting user object. – Raja Simon Feb 24 '15 at 07:49
  • @Hannah if the answer suits you then tell community to accept the answer – Raja Simon Feb 24 '15 at 08:08
  • @Hannah Please read this http://stackoverflow.com/tour . In my answer left side one tick mark will be there. Please click the tick to accept and also you will get 2 reputation. – Raja Simon Feb 25 '15 at 05:46