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

Erorr: name 'slugify' is not defined

NameError: name 'slugify' is not defined

Solution: name 'slugify' is not defined

# Add the following line to the top of your code
from django.utils.text import slugify

 

For more information:
Django slugify