ohk , corrected. But then why am I not getting to see the values on browser?
is it because the url pattern is not matching?

Thanks Daniel.
Dhruv Adhia
http://thirdimension.com



On Thu, Oct 22, 2009 at 12:05 PM, Daniel Roseman <dan...@roseman.org.uk>wrote:

>
> On Oct 22, 7:35 pm, Dhruv Adhia <druf...@gmail.com> wrote:
> > 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=56ee224509ffd27920e64189cab9a06
> f
> > 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 Adhiahttp://thirdimension.com
>
> You are using GET after all! As you can see from the console, it is a
> GET request, not a POST. So you should have been using request.GET
> ['whatever'] all along.
>
> I've no idea why you think '200 69' is an internal server error. On
> the contrary. The 200 part of that is the code for 'OK'. The 69 is
> just the length of the content that was returned.
> --
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to