コード例 #1
0
def realizarBusqueda(request):
	if request.method == 'POST':
		form = search(request.POST)

		if form.is_valid():
			sl = form.save()
			return searchImage(request, etiqueta=sl.busqueda)

	else:
		form = search()
		
	return render(request, 'search.html', {'form':form})
コード例 #2
0
def buscaAmigos(request):
    if request.method == 'POST':
        form = search(request.POST)

        if form.is_valid():
            sl = form.save()
            return searchFriend(request, nombre=sl.busqueda)

    else:
        form = search()

    return render(request, 'search.html', {'form': form})
コード例 #3
0
def buscaAmigos(request):
	if request.method == 'POST':
		form = search(request.POST)

		if form.is_valid():
			sl = form.save()
			return searchFriend(request, nombre=sl.busqueda)

	else:
		form = search()
		
	return render(request, 'search.html', {'form':form})
コード例 #4
0
def realizarBusqueda(request):
    if request.method == 'POST':
        form = search(request.POST)

        if form.is_valid():
            sl = form.save()
            return searchImage(request, etiqueta=sl.busqueda)

    else:
        form = search()

    return render(request, 'search.html', {'form': form})