text: from django.shortcuts import render
  from django.views.generic import (View, TemplateView,
                                    ListView, DetailView,
                                    CreateView, UpdateView, DeleteView)
  from django.core.urlresolvers import reverse_lazy
  from django.http import HttpResponse
  from . import models
  # Create your views here.
  class CBView(View):
      def get(self, request):
          return HttpResponse("This is class based views....")
  
  class IndexView(TemplateView):
      template_name = 'index.html'
  
      def get_context_data(self, **kwargs):
          context = super().get_context_data(**kwargs)
          context['injectme'] = 'Basic Injections'
          return context
  
  class SchoolListView(ListView):
      context_object_name = 'schools'
      model = models.School
  
  class SchoolDetailView(DetailView):
      context_object_name = 'school_details'
      model = models.School
      template_name = 'testapp/school_details.html'
  
  class SchoolCreateView(CreateView):
      fields = ('name', 'principal', 'location')
      model = models.School
  
  class  SchoolUpdateView(UpdateView):
      fields = ('name', 'principal')
      model = models.School
  
  class SchoolDeleteView(DeleteView):
      model = models.School
      success_url = reverse_lazy("testapp:list")
  