(request)
return my_render_to_response(request, 'yaksh/view_profile.html', context)
view moderators and users profile
view moderators and users profile
view moderators and users profile
def view_profile(request):
    """ view moderators and users profile """
    user = request.user
    if is_moderator(user):
        template = 'manage.html'
    else:
        template = 'user.html'
    context = {'template': template, 'user': user}
    return my_render_to_response(request, 'yaksh/view_profile.html', context)
def view_profile ( request ) : user = request . user if is_moderator ( user ) : template = 'manage.html' else : template = 'user.html' context = { 'template' : template , 'user' : user } return my_render_to_response ( request , 'yaksh/view_profile.html' , context )