Exemplo n.º 1
0
def import_dataset(request):
    if request.method == 'POST':
        url = request.POST.get('dataset_url')
        server = VDNServer.objects.get(pk=request.POST.get('server_pk'))
        user = request.user if request.user.is_authenticated() else None
        import_vdn_dataset_url(server, url, user)
    else:
        raise NotImplementedError
    return redirect('video_list')
Exemplo n.º 2
0
def import_dataset(request):
    if request.method == 'POST':
        url = request.POST.get('dataset_url')
        server = VDNServer.objects.get(pk=request.POST.get('server_pk'))
        user = request.user if request.user.is_authenticated else None
        import_vdn_dataset_url(server, url, user)
    else:
        raise NotImplementedError
    return redirect('video_list')