from django.http import HttpResponse
from django.shortcuts import render
from matplotlib.style import context

data = {
    "blogs": [
        {
            "id": 1,
            "title": "Başlık 1",
            "image": "python.jpg",
            "is_active": True,
            "is_blog": True,
            "description": "bu bir açıklamadır 1"
        }
    ]
},

# Create your views here.
def index(request):
    context= {
        "blogs": data["blogs"]
    }
    return render(request, "index.html", context)

def blog(request):
    context= {
        "blogs": data["blogs"]
    }
    return render(request, "blog.html", context)

def blog_details(request, id):
    return render(request, "blog-detail.html", {
        "id": id
    })


sürekli bir hata alıyorum nedeni nedir ve doğru olanı nasıl yaparım destek olur musunuz?


aldığım hata :
Type Eror

tuple indices must be integers or slices, not str