Allright, I see some progress, so now my views looks like this with that little modification
def add_score(request): response_dict ={} if request.POST: name = request.POST['name'] score = request.POST['score'] hash = request.POST['hash'] response_dict = {'name': name, 'score': score, 'hash': hash} return render_to_response('add_score.html', response_dict) >From unity I am getting scores and names and I am also posting it onto the webserver. The getting part is fine as I could read it from the database. But when I post , the server is getting the posted values but it also gives 200 69 which is internal server error here is what I see in terminal [22/Oct/2009 13:30:36] "GET /add_score/name=carbon_chaos&score=100&hash=56ee224509ffd27920e64189cab9a06f HTTP/1.1" 200 69 [22/Oct/2009 13:30:36] "GET /display_score/ HTTP/1.1" 200 187 as you will see name = carbon_chaos and score=100 and some hash value... I am posting those data from unity and when I load the scene I see that activity happening inside the terminal. But it does not display the values inside in the browser. What is the mistake? Thanks Dhruv Adhia http://thirdimension.com On Thu, Oct 22, 2009 at 11:30 AM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > On Oct 22, 7:19 pm, Dhruv Adhia <druf...@gmail.com> wrote: > > oops that was a typo.. thanks for pointing that out... Yep I see atleast > the > > html elements getting displayed like those arrows... > > > > on the views side I didnt get what f4nt meant.. can you show me an > example? > > > > You had it right in your reply to him: request.POST['name'] > > request.GET['whatever'] is for elements that are passed in as GET > parameters, eg /myurl/?param1=value1 > -- > DR. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---