Re: UserProfile
request.user.get_profile().avatar_url
Assuming you have set a AUTH_PROFILE_MODULE in settings, and send the
request context when rendering.
On Oct 13, 5:19 am, reduxdj <patricklemi...@gmail.com> wrote:
> I have a simple use-case. I want the user's profile to be available to
> the context instance. For instance, the user's avatar image, i want
> them to be able to see it all the time. Is there way to make the user
> profile available to the context instance?
>
> Thanks,
> Patrick
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home