def test2(request):
if request.method == 'POST':
form = Test(request.POST)
if form.is_valid():
return HttpResponseRedirect('/profile/')
else:
form = Test()
return render_to_response('test.html',{'form':form})
else:
form = Test()
return render_to_response('test.html',{'form':form})