(path, f_name)
| 81 | return HttpResponseRedirect(reverse('index')) |
| 82 | |
| 83 | def handle_uploaded_file(path, f_name): |
| 84 | target = path + '/' + str(f_name) |
| 85 | destination = open(target, 'wb+') |
| 86 | for chunk in f_name.chunks(): |
| 87 | destination.write(chunk) |
| 88 | destination.close() |
| 89 | |
| 90 | error_messages = [] |
| 91 | compute = get_object_or_404(Compute, pk=compute_id) |