def task_log(request, job_id):
    # получаем объект таска
    t = get_object_or_404(JobDataModel, id=job_id)
    # и его логи
    logs = t.get_logs(None)
    # рендерим логи в джанго-шаблоне
    return render_to_response(web.web_settings.template_environment, 'task_log.html',
                              request_context(request, {'task': t, 'logs': logs}))
def settings_view(request):
    return render_to_response(web.web_settings.template_environment, 'settings.html',
                              request_context(request))
def gallery(request):
    return render_to_response(web.web_settings.template_environment, 'gallery.html',
                              request_context(request))
def wait_core(request):
    return render_to_response(web.web_settings.template_environment, 'wait_core.html',
                              request_context(request))
def select_webserver(request):
    return render_to_response(web.web_settings.template_environment, 'req_server_choose.html',
                              request_context(request))
def task(request, job_id):
    t = get_object_or_404(JobDataModel, id=job_id)
    return render_to_response(web.web_settings.template_environment, 'task.html',
                              request_context(request, {'task': t}))
def task_list(request):
    return render_to_response(web.web_settings.template_environment, 'task_list.html',
                              request_context(request))
def uninstall(request):
    # context = {"master_title": u"Uninstalling Product(s)"}
    return render_to_response(web.web_settings.template_environment, 'uninstall.html',
                              request_context(request))
def install_application(request):
    application_name = request.REQUEST.get("products")
    # context =  {"master_title": "Installing application " + application_name}
    return render_to_response(web.web_settings.template_environment, 'install_application.html',
                       request_context(request))