def user_subscribe(request, nickname):
    if not request.method == 'POST':
        return HttpResponseRedirect(reverse('user', args=[nickname]))
    if not request.session.get('nickname', None):
        return HttpResponseRedirect(reverse('login'))
    f = friendfeed.FriendFeed(request.session['nickname'],
        request.session['key'])
    data = f.user_subscribe(nickname)
    if 'errorCode' in data:
        return error(request, data)
    memcache.delete('profile/' + request.session['nickname'])
    args = {
        'message': data.get('status', '')
    }
    return HttpResponseRedirect(reverse('user', args=[nickname]) + '?' + urllib.urlencode(args))
Subscribe to a user.
dataset/ETHPy150Open bgolub/fftogo/fftogo/views.py/user_subscribe