How to Solve NameError: name 'settings' is not defined -- autofit

Solution: Import the 'settings' module

# Add the following line to the top of your code
from autofit.app import settings

 

For more information:
autofit settings