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 render_to_response('inventory/orderprocess.html', > {'form':form}) > > above is my view code when a try to call this view its give and error > "The view didn't return an HttpResponse object." > > i have similar type of view which works fine whats the problem with > this ..
Well, the error message is giving you a very big clue. When you see that, look for all the ways that you are exiting that function. In this case, what happens when no exception is raised? At a guess, you have added the wrong indentation on the last line. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---