How to Solve NameError: name 'slugify' is not defined -- slugify

Solution: Import the 'slugify' module

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

from slugify import slugify

 

For more information:
Python slugify slugify