Anonymous     Python     10 Oct 2008    
1
2
3
4
5
@login_required
def profile(request):
user = User.objects.get(username=request.user.username)
uspro = user.get_profile()
return render_to_response('account/profile.html',{'user':user})