from django.views.generic import TemplateView, View from django.shortcuts import render from django.template.loader import render_to_string from projects.models import Order from common.models import MainPage, PrintDocuments from users.models import ContractorResumeFiles class HomeTemplateView(View): template_name = 'home.html' def get(self, request, *args, **kwargs): main_settings = MainPage.objects.get(pk=1) return render(request, self.template_name, {'main_settings': main_settings}) class TestChatTemplateView(View): template_name = 'chat_test.html' def get(self, request, *args, **kwargs): diploms = ContractorResumeFiles.objects.all() return render(request, 'chat_test.html', {'diploms': diploms})