def home(request):
    if not request.session.get('nickname', None):
        return HttpResponseRedirect(reverse('login'))
    f = friendfeed.FriendFeed(request.session['nickname'],
        request.session['key'])
    start = max(get_integer_argument(request, 'start', 0), 0)
    num = get_integer_argument(request, 'num', NUM)
    data = f.fetch_home_feed(**request_to_feed_args_dict(request))
    if 'errorCode' in data:
        return error(request, data)
    entries = [entry for entry in data['entries'] if not entry['hidden']]
    hidden = [entry for entry in data['entries'] if entry['hidden']]
    new_start = start
    while len(entries) < num and (new_start - start) / num < 3:
        new_start = new_start + num
        kwargs = request_to_feed_args_dict(request)
        kwargs['start'] = new_start
        data = f.fetch_home_feed(**kwargs)
        if 'errorCode' in data:
            break
        more_entries = [entry for entry in data['entries'] if not entry['hidden']]
        more_hidden = [entry for entry in data['entries'] if entry['hidden']]
        entries.extend(more_entries)
        hidden.extend(more_hidden)
    entries = entries[:num]
    extra_context = {
        'entries': entries,
        'next': start + len(entries) + len(hidden),
        'hidden': hidden,
    }
    if start > 0:
        extra_context['has_previous'] = True
        extra_context['previous'] = max(start - num, 0)
    if request.GET.get('output', 'html') == 'atom':
        return atom(entries)
    return render_to_response('home.html', extra_context, context_instance=RequestContext(request))
Formats a datetime.date or datetime.datetime object using a
dataset/ETHPy150Open bgolub/fftogo/fftogo/views.py/home--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/utils/formats.py/date_format