from django.utils import translation
from django.conf import settings
from django.http import Http404
from django.utils import translation
from django.conf import settings
from django.http import Http404
class SetRemoteAddrFromXRealIP(object):
"""Sets REMOTE_ADDR from the X-Real-IP header, as set by Nginx."""
def process_request(self, request):
class SetRemoteAddrFromXRealIP(object):
"""Sets REMOTE_ADDR from the X-Real-IP header, as set by Nginx."""
def process_request(self, request):