How to Solve NameError: name 'AutoSlugField' is not defined -- django_extensions

Solution: Import the 'AutoSlugField' module

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

from django_extensions.db.fields import AutoSlugField

 

For more information:
Python django_extensions AutoSlugField