I have the following view that displays the user profile:
@login_required
def user_profile(request):
return render_to_response('registration/profile.html',context_instance=RequestContext(request))
I access the user information through the request.user
variable in the template.
I was thinking that it might be easier to just have a direct_to_template
url, but then the request context won't be there.
Is there a better way of doing this? Thanks