from django.http import HttpResponse
from django.shortcuts import render
from venues.models import Venue

def index(request):
    venues = Venue.objects.all()
    context = {'venues': venues }
    return render(request, 'venues/index.html', context)

from django.shortcuts import render
from venues.models import Venue

def index(request):
    venues = Venue.objects.all()
    context = {'venues': venues }
    return render(request, 'venues/index.html', context)

Remove unused import