<div class="container-fluid">
<div class="row content">
{% include 'blog/navbar.html' %}
<div class="col-sm-9">
<h4><small>RECENT POSTS</small></h4>
<hr>
{%block content %}
{% endblock%}
</div>
</div>
</div>
class HomeView(ListView):
template_name='blog/home.html'
model=Blog
class BlogView(DetailView):
template_name='blog/blog.html'
model=Blog
class ContactView(ListView): --------> i don't need model blog for contactview.But I am using it to populate side navbar.If I have other similar views.should it done in the same way
template_name='blog/contact.html'
model=Blog