def index(request): view = TemplateView('index.html') view.data['news_display'] = news.views.display(request) view.data['chat_list'] = chat.views.list(request) view.data['user_index'] = user.views.index(request) return view.render()
def list(request): view = TemplateView('list.html') result, chats = chat.controls.list() view.data['result'] = result view.data['chats'] = chats return view.render()