from django.shortcuts import render
from django.http import HttpResponse
from reviseApp.models import School
from django.views.generic import View,TemplateView,ListView,DetailView

# class index(View):
#     def get(self,request):
#         return HttpResponse("Hello")

class index(TemplateView):
    template_name='index.html'

    def get_context_data(self,**kwargs):
        context=super().get_context_data(**kwargs)
        context['view']="KUNJA BIJUKCHHE"
        return context
class SchoolListView(ListView):
    model=School
    

class SchoolDetailView(DetailView):
    model=School
    template_name='reviseApp/school_detail.html'
