I have started an app to post data to django using tastypie. However, I am getting a http 403 forbidden error. Could you please help me to bypass that error ?
Edit: I am getting that error due to my 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>
Are you hitting a CSRF error? You'll want to add the csrf_exempt
decorator to your view.