context_processors.py 236 Bytes
Newer Older
fred's avatar
fred committed
1 2 3 4 5 6 7 8
from django.conf import settings

def panikweb(request):
    return {
        'site_url': request.build_absolute_uri('/').strip('/'),
        'radio_name': settings.RADIO_NAME,
        'radio_long_name': settings.RADIO_LONG_NAME,
    }