def base(request): all_contacts = Contact.objects.all() template = 'contacts.html' return r(template, {'all_contacts': all_contacts}, request)
def get_home_page(self, request, *args, **kwargs): template = 'index.html' return r(template, {}, request)