from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from streams.models import GameStream
from streams.serializers import GameStreamSerializer
import json


@login_required()
def index(request):
    context = {}
    streams = GameStream.objects.all()
    serializer = GameStreamSerializer(streams, many=True)
    context['streams'] = json.dumps(serializer.data)
    return render(request, 'index.html', context={'props': context})

1338d3f1c47aac7c9c7075f32c880374aca5bf68
<mask token>

<mask token>


@login_required()
def index(request):
    context = {}
    streams = GameStream.objects.all()
    serializer = GameStreamSerializer(streams, many=True)
    context['streams'] = json.dumps(serializer.data)
    return render(request, 'index.html', context={'props': context})

from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from streams.models import GameStream
from streams.serializers import GameStreamSerializer
import json


@login_required()
def index(request):
    context = {}
    streams = GameStream.objects.all()
    serializer = GameStreamSerializer(streams, many=True)
    context['streams'] = json.dumps(serializer.data)
    return render(request, 'index.html', context={'props': context})
