Esempio n. 1
0
def processing_view(request, id):
    input = InputData.objects.get(id=id)
    if Process.run(input):
        link_with_id = '/dashboard/' + str(input.id)
        return HttpResponseRedirect(link_with_id)

    context = {"input": input}
    return render(request, "processing.html", context)