Files @ 29e46a237f43
Branch filter:

Location: website/conservancy/context_processors.py

bsturmfels
Disable Tachyons import line

This avoids an error during `collectstatic`.
from django.conf import settings

from .fundgoal.models import FundraisingGoal

def sitefundraiser(request):
    try:
        fundgoal = FundraisingGoal.objects.get(fundraiser_code_name=settings.SITE_FUNDGOAL)
    except FundraisingGoal.DoesNotExist:
        fundgoal = None
    return {'sitefundgoal': fundgoal}


def host_url(request):
    return {'host_url': request.build_absolute_uri('/').rstrip('/')}