How to Solve NameError: name 'dashboard' is not defined -- Dashboard

Solution: Import the 'dashboard' module

# Add the following line to the top of your code
from Dashboard.views import dashboard

 

For more information:
Dashboard dashboard