I'm pretty sure you want `HTTP_X_FORWARDED_FOR` here. At least in prod. So maybe you want to do something like:
`request.META.get('HTTP_X_FORWARDED_FOR', request.META.get('request.META'))`.

See  https://support.mozilla.org/admin/env for full WSGI request details on prod, for example.