Thanks mrstone for your reply, but there are some things that are not too clear, please bear with me :)
I take it that I have to define every profile that I like separately and reference them all using a ForeingKey to user ? What do I fill in as the standard profile in AUTH_PROFILE_MODULE? Thanks! On Feb 6, 8:58 pm, "mrstone" <[EMAIL PROTECTED]> wrote: > The current framework only allow for one "profile class" per site. > > If you want you can let this class return different profiles > depending on the user. > > class mysiteprofile(models.Model) > user = models.ForeignKey(User, unique=True, > related_name='user_profile') > ... > ... > > def get_for_user(self): > if self.user is something: > return profile_one > else: > return profile_two > > @login_required > def myview(request): > profile = request.user.get_profile().get_for_user() > > On Feb 5, 5:01 pm, "voltron" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Accoridng to the Django book, one could extend the basic user model by > > adding a profile class, this class is then set in the settings module > > thus: > > > AUTH_PROFILE_MODULE = "myapp.mysiteprofile" > > > How do I set multiple profiles? I would like to have different types > > of users, diffrentiating via different profiles. > > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---