GeoIP を使用しようとしていますが、REMOTE_ADDR を使用すると問題が発生します。表示されている IP は、クライアントではなく、サーバーの IP です。
from django.contrib.gis.geoip import GeoIP
Example context:
g = GeoIP()
ip = self.request.META.get('REMOTE_ADDR')
context['my_ip'] = ip # this display ip client
context['pais_anuncio'] = g.country_code('ip') # this display ip my server.
私は何を間違っていますか、ありがとう。