def profile_related_list(request, username, relation):
    profile = get_object_or_404(Profile, user__username__iexact=username)
    user = profile.user

    # get a queryset of users described by this relationship
    if relation == 'followers':
        related_users = models.followers(user)
    elif relation == 'following':
        related_users = models.following(user)

    paginator = Paginator(related_users, 20)
    page = request.GET.get('page')
    try:
        related_users = paginator.page(page)
    except PageNotAnInteger:
        # If page is not an integer, deliver first page.
        related_users = paginator.page(1)
    except EmptyPage:
        # If page is out of range (e.g. 9999), deliver last page of results.
        related_users = paginator.page(paginator.num_pages)
    return render(request, "accounts/account_profile_related.html", {
        'user': user,
        'profile': profile,
        'related_users': related_users,
    })
Takes the raw Caffe output created while training the model in order
dataset/ETHPy150Open python/raspberryio/raspberryio/userprofile/views.py/profile_related_list--crossover with--dataset/ETHPy150Open BradNeuberg/cloudless/src/cloudless/train/train.py/_generate_parsed_logs