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_response('inventory/orderprocess.html',
> {'form':form})
This return statement is indented to be inside the except clause. If
no exception is raised, the view doesn't return anything...
Yours,
Eric
>
>
> 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 ..
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---