from django.http import HttpResponse
from django.template import Context, loader
from beer.models import Beer


def index(request):
    beer_list = Beer.objects.all()
    template = loader.get_template('beer/index.html')
    c = Context({'beers': beer_list})
    return HttpResponse(template.render(c))

9d273687d8908579b2dcc322abdf8d8beb7f638b
<mask token>

<mask token>


def index(request):
    beer_list = Beer.objects.all()
    template = loader.get_template('beer/index.html')
    c = Context({'beers': beer_list})
    return HttpResponse(template.render(c))

from django.http import HttpResponse
from django.template import Context, loader
from beer.models import Beer


def index(request):
    beer_list = Beer.objects.all()
    template = loader.get_template('beer/index.html')
    c = Context({'beers': beer_list})
    return HttpResponse(template.render(c))
