is username and password and email stored under user or i need to make
models.CharField for them?


On Oct 26, 7:03 pm, dunia <[EMAIL PROTECTED]> wrote:
> Gigs_ wrote:
> > how do you people createuserprofile in models?
> > i want to createduserprofile for users to register
> > i have don it like this, but i have feeling that it could be better
>
> > class PlayersProfile(models.Model):
> >    user= models.ForeignKey(User)
> >     first_name = models.CharField(maxlength=20)
> >     last_name = models.CharField(maxlength=20)
> >     email = models.EmailField()
> >     # some more models field
>
> >     def __unicde__(self):
> >         return self.first_name
>
> >     class Admin:
> >         pass
>
> take a look at 
> this:http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-m...http://www.stonemind.net/blog/2007/04/13/django-registration-for-newb...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to