def secure(request): return {'secure': request.is_secure()} def branding(request): from django.conf import settings return { 'BRANDING_APPNAME': settings.BRANDING_APPNAME, 'BRANDING_DISTRONAME': settings.BRANDING_DISTRONAME, 'BRANDING_SHORTNAME': settings.BRANDING_SHORTNAME, 'BRANDING_EMAIL': settings.BRANDING_EMAIL, } # vim: set ts=4 sw=4 et: