[Answered ]-I am attempting to add two models from separate local apps into one template

2👍

It seems that your urls.py has no access to DashboardTemplateView because you have not imported it. To solve this:

  1. Import this module into your urls.py, by typing:

    from posts import views as posts_views

  2. 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.

👤ohjuny

Leave a comment