old_contents: from django.shortcuts import render
  
  # Create your views here.
  
new_contents: from django.views.generic import ListView
  from django.contrib.auth.decorators import login_required
  from django.utils.decorators import method_decorator
  
  from .models import Account
  
  class AccountList(ListView):
      model = Account
      template_name = 'accounts/account_list.html'
      context_object_name = 'accounts'
  
      def get_queryset(self):
          account_list = Account.objects.filter(owner=self.request.user)
          return account_list
  
      @method_decorator(login_required)
      def dispatch(self, *args, **kwargs):
          return super(AccountList, self).dispatch(*args, **kwargs)
  
subject: Create the Account List > List Accounts - Create View