X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/04ed822e3985e1565a1d652017be4004b4ddf8f3..1efd8702d1a638414efea3c0f0c6146e97d386f1:/src/wolnelektury/context_processors.py diff --git a/src/wolnelektury/context_processors.py b/src/wolnelektury/context_processors.py index 0079ea0df..8f763c9fc 100644 --- a/src/wolnelektury/context_processors.py +++ b/src/wolnelektury/context_processors.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -9,5 +8,6 @@ def extra_settings(request): return { 'STATIC_URL': settings.STATIC_URL, 'FULL_STATIC_URL': request.build_absolute_uri(settings.STATIC_URL), - 'USE_OPENID': getattr(settings, 'USE_OPENID', False) + 'USE_OPENID': getattr(settings, 'USE_OPENID', False), + 'VARIANT': settings.VARIANTS.get(request.get_host()), }