I have never used csrf_exempt before. I keep experiencing a traceback
with 1.3.1, which may be self-induced. Here is my views file:
auth/views.py
from django.http import HttpResponse
from django.utils import simplejson
from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
def json_ap
I get a 403 error when I comment out csrf_example as such:
auth/views.py
from django.http import HttpResponse
from django.utils import simplejson
#from django.views.decorators.csrf import csrf_exempt
#@csrf_exempt
def json_api(request):
return HttpResponse(simplejson.dumps(request), mimetype="a
2 matches
Mail list logo