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