【发布时间】:2012-08-04 21:25:58
【问题描述】:
我已经启动了一个应用程序来使用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>
【问题讨论】:
-
这可能是很多事情。是否没有来自您的应用服务器的日志可以检查并提供堆栈跟踪? apache/uwsgi/gunicorn 日志
-
我正在使用 Pycharm。你知道如何获取堆栈跟踪吗?