こんにちわ

先日もお世話になったtonpaです。

django1.3で以下の用にPOSTをしたところ、403で返ってきてしまっているようです。

// post
$.post("/detail", {id: id} , function(data) { callback })

// view
def detail(request):
    if request.is_ajax():
        if request.method == 'POST':
            detail = Model.objects.get(id=csrf(request.POST['id']))
            return render_to_response('detail.html',
                                {'detail': detail},
                                context_instance=RequestContext(request))

また、以下に記載されているサンプルをコピーして読み込んでおります。
https://docs.djangoproject.com/en/1.3/ref/contrib/csrf/#ajax

開発環境で開発中のときは期待通の動作をしておりましたが、
apacheにデプロイしてからは、403を返すようになってしまいました。

原因追及にご協力いただけませんでしょうか。

よろしくお願いいたします。


-- 
-----------------                       http://djangoproject.jp/                
         -----------------
You received this message because you are subscribed to the Google Groups 
"django-ja" group.
To post to this group, send email to django-ja@googlegroups.com
To unsubscribe from this group, send email to 
django-ja-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-ja

メールによる返信