Re: django ajax Post returns empty message

2012-10-24 Thread psychok7
got it, the problem was that i had to change this request.GET.get('type','') to thisrequest.POST.get('type','') On Wednesday, October 24, 2012 9:56:15 PM UTC+1, psychok7 wrote: > > using django 1.4, I can Post but the Post response comes (undefined) empty > but GET works fine. i am using the csr

Re: django ajax Post returns empty message

2012-10-24 Thread psychok7
it seems like its not posting propely, irequest.GET.get('type','') but it prints empty string and the Post response comes (undefined) empty but GET works fine. On Wednesday, October 24, 2012 9:56:15 PM UTC+1, psychok7 wrote: > > using django 1.4, I can Post but the Post response comes (undefine

django ajax Post returns empty message

2012-10-24 Thread psychok7
using django 1.4, I can Post but the Post response comes (undefined) empty but GET works fine. i am using the csrf checks not sure if the problem also comes from there my django view: @csrf_protect def edit_city(request,username): conditions = dict() #if request.is_ajax(): if req