Works! New to Django/python, and you just solved an hour's worth of head trauma.
Thanks Russ! On Jul 25, 2:33 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > def profile(request): > > template_name = 'user_profile.html' > > obj_list = User.get_profile() > ... > > unbound method get_profile() must be called with User instance as > > first argument (got nothing instead) > > Look closer at the code - the error message is telling you what is > wrong. Heres a hint: which user instance are you calling get_profile() > on? > > User is the name of the class; if you're looking for the instance of > User that has made the request, you're looking for > request.user.get_profile() (assuming you have the authentication > middleware installed). > > Yours, > Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---