Esempio n. 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})
Esempio n. 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})
Esempio n. 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})
Esempio n. 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})