Fix downloading images on publish.
[wolnelektury.git] / src / wolnelektury / context_processors.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.conf import settings
5
6
7 def extra_settings(request):
8     return {
9         'STATIC_URL': settings.STATIC_URL,
10         'FULL_STATIC_URL': request.build_absolute_uri(settings.STATIC_URL),
11         'USE_OPENID': getattr(settings, 'USE_OPENID', False),
12         'VARIANT': settings.VARIANTS.get(request.get_host()),
13     }