Accessing Services From a Docker Container on the Host

As part of my current project, I needed to call a Django web service that I was running on my host from a Docker container. I was unclear how to do this until I came across this Stackoverflow post:

https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach