How to Solve NameError: name 'CreateView' is not defined -- django
Solution: Import the 'CreateView' module
To Solve the error, add the following line to the top of your code.
from django.views.generic import CreateView
For more information:
Python django CreateView