title: How to I send an external POST request to a Django app?
body: <p>I need to send a POST request to a Django app to update a dictionary that the app references.
  The urls.py file looks like:</p>
  <pre><code>from django.conf.urls import url
  from . import views
  
  urlpatterns = [url(r'^post/', views.receive]
  </code></pre>
  <p>and the views.py file looks like:</p>
  <pre><code>from django.shortcuts import render, HttpResponse
  import json
  
  def receive(request):
      if request.method == 'POST':
          contents = json.parse(request.body)
  </code></pre>
  <p>When I try to send a POST to the url in urls.py with a simple body, I get a forbidden error. How do I structure my code/app to receive and record data from a POST? Is Django able to do this?</p>