On Fri, Mar 28, 2008 at 4:06 PM, Francisco Benavides <
[EMAIL PROTECTED]> wrote:

>
> Hi Again,
>
> I also get errors if I try to use the get_profile() funtion:
>
> from django.contrib.auth.models import User
>    from txm.userprofile.models     import UserProfile
>    user    = User.objects.get(username__exact=username)
>    profile = user.get_profile()
>
> Here is the traceback:
> http://dpaste.com/41883/
>

This one looks like your AUTH_PROFILE_MODULE hasn't be set properly in
settings.py.  From your earlier note I see you have it as 'txm.userprofile'
but you've got your models.py that defines the UserProfile model under
userprofile, not txm, so I think perhaps AUTH_PROFILE_MODULE is supposed to
be 'userprofile.userprofile' for the way you have things set up.

Karen

--~--~---------~--~----~------------~-------~--~----~
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