Ben Sturmfels
0b8ae2ca77
This changes more often than the surrounding code, so should live with the other configuration.
14 lines
407 B
Python
14 lines
407 B
Python
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('/')}
|