django ajax post 403 forbidden
问题 using django 1.4 im getting a 403 error when i try to do a post from my javascript do my django server. my get works fine though the problem is only with the post. also tried @csrf_exempt with no luck UPDATE: I can Post now that i added {% csrf_token %} , but the post response comes empty, although the GET comes correctly, any ideas? my django view: @csrf_protect def edit_city(request,username): conditions = dict() #if request.is_ajax(): if request.method == 'GET': conditions = request.method