我已經開始使用tastypie發佈數據到django的應用程序。但是,我收到了一個http 403禁止的錯誤。你能幫我繞過這個錯誤嗎?帶數據的Django帖子返回一個HTTP 403禁止的錯誤
編輯: 我得到這個錯誤是由於我的views.py
</script>
</head>
<body>
<div id="summary">
<h1>MultiValueDictKeyError at /api/recipes/item_new/</h1>
<pre class="exception_value">'Key \'data\' not found in <QueryDict: {u\'{ data:\\n {\\n name: "Something",\\n content: "Anything"\\n }\\n}\\n\': [u\'\']}>'</pre>
<table class="meta">
<tr>
<th>Request Method:</th>
<td>POST</td>
</tr>
<tr>
<th>Request URL:</th>
<td>http://localhost:8000/api/recipes/item_new/</td>
</tr>
這可能是一些事情。是否沒有來自應用程序服務器的日誌可以檢查並提供堆棧跟蹤? apache/uwsgi/gunicorn logs – 2012-08-04 21:28:51
我正在使用Pycharm。你知道如何獲得堆棧跟蹤嗎? – 2012-08-04 21:33:33