# -*- encoding: utf-8 -*-

# from django import template
# from django.contrib.auth.decorators import login_required
# from django.http import HttpResponse, HttpResponseRedirect
# from django.template import loader
# from django.urls import reverse

import asyncio

from django.views.generic import TemplateView
from django.utils.decorators import classonlymethod
from django.contrib.auth.decorators import login_required


class IndexView(TemplateView):
    """
    
    """

    template_name = "home/index.html"
    # view_is_async = True

    # @classonlymethod
    # def as_view(cls, **initkwargs):
    #     view = super().as_view(**initkwargs)
    #     view._is_coroutine = asyncio.coroutines._is_coroutine
    #     return view

    # async def get(self, request, *args, **kwargs):
    #     context = self.get_context_data(**kwargs)
    #     return self.render_to_response(context)