2👍
It seems that your urls.py has no access to DashboardTemplateView because you have not imported it. To solve this:
-
Import this module into your urls.py, by typing:
from posts import views as posts_views
-
When you are building your url, reference it as posts_views.DashboardTemplateView instead of just DashboardTemplateView
url(r’^’, posts_view.DashboardTemplateView.as_view(template_name=(‘base.html’)), name=’name’),
Hope this helps.
Source:stackexchange.com