from django.http.response import HttpResponse
from django.template import Context, loader

from .models import Tag


def homepage(request):
    tag_list = Tag.objects.all()
    template = loader.get_template(
        'organizer/tag_list.html')
    context = Context({'tag_list': tag_list})
    output = template.render(context)
    return HttpResponse(output)


def tag_detail(request):
    # slug = ?
    tag = Tag.objects.get(slug__iexact=slug)
    return HttpResponse()

@@ -444,30 +444,163 @@
 ug)%0A    
-return HttpResponse(
+template = loader.get_template(%0A        'organizer/tag_detail.html')%0A    context = Context(%7B'tag': tag%7D)%0A    return HttpResponse(template.render(context)
 )%0A

Tag Detail: load and render template.