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

Solution: Import the 'EngineHandler' module

# Add the following line to the top of your code
from django.template import EngineHandler

 

For more information:
django EngineHandler