That's correct, it has to be the name of the profile model as written in app/models.py.
s/ On Mar 11, 5:25 am, Micah Ransdell <mjr...@gmail.com> wrote: > Viktor, > > Try capitalizing UserProfile so that it is 'membership.UserProfile' instead > of all lowercase. That has worked for me in the past. > > Micah > > On Tue, Mar 10, 2009 at 5:03 PM, Viktor Nagy <viktor.n...@gmail.com> wrote: > > > Hi, > > > I just can't figure out how to use django-profiles. I've an > > application called ``membership``, and there I have a models.py file > > containing: > > > class UserProfile(models.Model): > > user = models.ForeignKey(User, unique=True) > > affiliation = models.TextField(blank=False, > > help_text=_('Affiliation of the user')) > > conf_food_preference = models.CharField(max_length=10, > > choices=FOOD_PREFERENCES, > > help_text=_('Special food > > requirements')) > > conf_billing_address = models.TextField(blank=False, > > help_text=_('Billing address')) > > membership_active = models.DateField(blank=True, null=True, > > default=date.today, > > help_text=_('Membership > > expires on this day')) > > > def get_absolute_url(self): > > return ('profiles_profile_detail', (), {'username': > > self.user.username}) > > > get_absolute_url = models.permalink(get_absolute_url) > > > finally I set AUTH_PROFILE_MODULE = 'membership.userprofile' in > > settings.py, but I still get a ``SiteProfilenotAvailable`` exception. > > > Could someone help me out please? I'm sure that there is a blatant > > thing I don't notice! > > > Thanks, V > > --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---