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

Solution: Import the 'staticfiles_urlpatterns' module

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

from django.contrib.staticfiles.urls import staticfiles_urlpatterns

 

For more information:
Python django staticfiles_urlpatterns