Re: The view didn't return an HttpResponse object.

2012-10-01 Thread Satinderpal Singh
On Mon, Oct 1, 2012 at 4:58 PM, Babatunde Akinyanmi wrote: > Oooops. I see the question has already been answered. My phone didn't > get the update on time. No worries, Thanks anyways > On 10/1/12, Babatunde Akinyanmi wrote: >> Its possible that when you refresh the form and the POST request get

Re: The view didn't return an HttpResponse object.

2012-10-01 Thread Babatunde Akinyanmi
Oooops. I see the question has already been answered. My phone didn't get the update on time. On 10/1/12, Babatunde Akinyanmi wrote: > Its possible that when you refresh the form and the POST request gets > submitted, the form doesn't pass the form.is_valid() if conditional. > In your code, you d

Re: The view didn't return an HttpResponse object.

2012-10-01 Thread Babatunde Akinyanmi
Its possible that when you refresh the form and the POST request gets submitted, the form doesn't pass the form.is_valid() if conditional. In your code, you didn't make any provision for when the form fails the is_valid() test and from your code, execution stops once is_valid() returns False so I *

Re: The view didn't return an HttpResponse object.

2012-10-01 Thread Tom Evans
On Mon, Oct 1, 2012 at 12:11 PM, Satinderpal Singh wrote: > On Mon, Oct 1, 2012 at 4:27 PM, Tom Evans wrote: >> On Mon, Oct 1, 2012 at 11:36 AM, Satinderpal Singh >> wrote: > I add the following to my code, >>> I made a model form and a view which accepts input as a form and >>> display it in th

Re: The view didn't return an HttpResponse object.

2012-10-01 Thread Satinderpal Singh
On Mon, Oct 1, 2012 at 4:27 PM, Tom Evans wrote: > On Mon, Oct 1, 2012 at 11:36 AM, Satinderpal Singh > wrote: I add the following to my code, >> I made a model form and a view which accepts input as a form and >> display it in the html format. As when i refresh the html page or try >> to fill an

Re: The view didn't return an HttpResponse object.

2012-10-01 Thread Tom Evans
On Mon, Oct 1, 2012 at 11:36 AM, Satinderpal Singh wrote: > I made a model form and a view which accepts input as a form and > display it in the html format. As when i refresh the html page or try > to fill another entry in the form, it gives the following error: > > The view Automation.report.vie

Re: The view didn't return an HttpResponse object.

2008-12-16 Thread Malcolm Tredinnick
On Tue, 2008-12-16 at 23:23 -0800, oops wrote: > def OrderPlacedView(request): > form = OrderPlaceForm() > try: > print "try" > print request.POST > #brand = BrandName.objects.get(pk=request.POST['brand']) > except: > print"nothing" > return ren

Re: The view didn't return an HttpResponse object.

2008-12-16 Thread Eric Abrahamsen
On Dec 17, 2008, at 3:23 PM, oops wrote: > > def OrderPlacedView(request): >form = OrderPlaceForm() >try: >print "try" >print request.POST >#brand = BrandName.objects.get(pk=request.POST['brand']) >except: >print"nothing" >return render_to_resp