X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/585946023edb342d34db452cbd25ff718c935242..e304ddc63e67fcf4176145e5405abdc0ff7ddd0b:/wolnelektury/settings/__init__.py?ds=sidebyside diff --git a/wolnelektury/settings/__init__.py b/wolnelektury/settings/__init__.py index db6ba4584..46e61bd85 100644 --- a/wolnelektury/settings/__init__.py +++ b/wolnelektury/settings/__init__.py @@ -38,6 +38,7 @@ MIDDLEWARE_CLASSES = [ 'django.middleware.common.CommonMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + 'realip_middleware.SetRemoteAddrFromXRealIP', ] ROOT_URLCONF = 'wolnelektury.urls'