def index(request, template_name="<STR_LIT>"):
if request.GET.get('<STR_LIT>'):<EOL><INDENT>counter, created = Counter.objects.get_or_create(pk=<NUM_LIT:1>)<EOL>counter.value += <NUM_LIT:1><EOL>counter.save()<EOL><DEDENT>else:<EOL><INDENT>counter, created = Counter.objects.get_or_create(pk=<NUM_LIT:1>)<EOL>print(counter.value)<EOL><DEDENT>context = dict(<EOL>value=counter.value,<EOL>)<EOL>return render(request, template_name, context=context)<EOL>
\
    The index view, which basically just displays a button and increments
    a counter.