Getting the request origin in a Django request
As for getting the url from request
(which is what I was looking for), use request.META['HTTP_REFERER']
instead.
In Django,
request.headers['Origin']
answers the original question.
You can print(request.headers)
to see everything available in the headers.