Python - How to import 'ListView' -- django

Import ListView

To import ListView, Add the following line to the top of your code.

from django.views.generic import ListView

 

For more information about ListView:
django ListView