我已经启动了一个应用程序来使用tastepie 将数据发布到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>