Django messages framework with Proxy

I have a django application running on heroku. I'm having a problem with the django message framework. messages.success(request,"Foo") all users are shown this warning message when this code runs. I think this is because of heroku's proxy. Because when I print the client's IP address on the screen, I get a constantly changing IP address. When I use HTTP_X_FORWARDED_FOR I can get the real IP address of the client. But how do I set it up with django messages framework? A message alert is shown to all users (different device, different IP though)

Back to Top