summaryrefslogtreecommitdiff
path: root/main/context_processors.py
blob: 850bb49917a453afd2393d8288d65e12e690099b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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: