”403”はhttp status codeであり、開発環境はdjangoのframeworkのwebserverで動いていたのであれば、デプロイ環境のApacheの設定におかしいところが在るのではないでしょうか?
http://ja.wikipedia.org/wiki/HTTP_403 どのような環境で動かされているのか不明なため、原因の推測が今案最低限、開発環境、動作環境(apacheデプロイ環境)などを記載頂かないと回答が難しいです。 ※技術系メーリングリストで質問方法 http://www.hyuki.com/writing/techask.html 2012/8/31 tonpa <oniku.wo.mog...@gmail.com>: > こんにちわ > > 先日もお世話になった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 -- ----------------- 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