text: from django.shortcuts import render, redirect
  from django.contrib.auth import logout
  from django.views.generic.base import TemplateView
  from django.http import HttpResponse
  from django.views import View
  
  def home(request):
      return render(request, 'home.html')
  
  def my_logout(request):
      logout(request)
  
      return redirect('home')
  
  
  
  class HomeViews(TemplateView):
      template_name = 'home3.html'
  
      def get_context_data(self, **kwargs):
          context = super().get_context_data(**kwargs)
          context['variavel'] = 'bem vindo a home page 3'
          return context
  
  
  class MyView(View):
  
      def get(self, request, *args, **kwargs):
          return render(request,'home3.html')
  
  
      def post(self, request, *args, **kwargs):
          return render(request, 'home.html')
  
  
  
  
  