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

Erorr: name 'StaticFilesConfig' is not defined

NameError: name 'StaticFilesConfig' is not defined

Solution: Import the 'StaticFilesConfig' module

# Add the following line to the top of your code
from django.contrib.staticfiles.apps import StaticFilesConfig

 

For more information:
django StaticFilesConfig