How to Solve NameError: name 'InvalidTemplateLibrary' is not defined -- django
Solution: Import the 'InvalidTemplateLibrary' module
# Add the following line to the top of your code
from django.template.library import InvalidTemplateLibrary
For more information:
django InvalidTemplateLibrary