text: from django.shortcuts import render
  from .models import *
  from django.views.generic import FormView
  from django.urls import reverse
  from paypal.standard.forms import PayPalPaymentsForm
  
  # Create your views here.
  
  def video(request):
      obj = Item.objects.all()
  #    if len(obj) == 0:
  #        obj = false
      return render(request, 'LiveHome.html', {'obj':obj})
  
  class PaypalFormView(FormView):
      template_name = 'paypal_form.html'
      form_class = PayPalPaymentsForm
  
      def get_initial(self):
          return {
              "business": '',
              "amount": 20,
              "currency_code": "USD",
              "item_name": 'Example item',
              "invoice": 1234,
              "notify_url": self.request.build_absolute_uri(reverse('paypal-ipn')),
              "return_url": self.request.build_absolute_uri(reverse('paypal-return')),
              "cancel_return": self.request.build_absolute_uri(reverse('paypal-cancel')),
              "lc": 'EN',
              "no_shipping": '1',
          }
  
  
  
  