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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---