How to Solve NameError: name 'DeleteView' is not defined -- django

Solution: Import the 'DeleteView' module

To Solve the error, add the following line to the top of your code.

from django.views.generic.edit import DeleteView

 

For more information:
Python django DeleteView