Changeset - 4ca9ac146374
[Not reviewed]
0 1 0
Brett Smith (brett) - 5 years ago 2018-11-20 15:38:46
brett@sfconservancy.org
static: Update sitefundgoal for these pages too.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/views.py
Show inline comments
...
 
@@ -49,23 +49,23 @@ def index(request, *args, **kwargs):
 
        return handler404(request)
 
    content_type, _ = mimetypes.guess_type(path)
 
    if content_type != 'text/html':
 
        content = open(fullpath)
 
    else:
 
        content_type = None  # Let Django use its default
 
        template = loader.get_template(path)
 

	
 
        kwargs = kwargs.copy()
 
        if kwargs.has_key('fundraiser_sought'):
 
            kwargs['fundgoal'] = fundgoal_lookup(kwargs['fundraiser_sought'])
 

	
 
        kwargs['sitefundgoal'] = fundgoal_lookup('supporterrun')
 
        kwargs['sitefundgoal'] = fundgoal_lookup('cy2018-end-year-match')
 

	
 
        context = RequestContext(request, kwargs)
 
        content = template.render(context)
 
    return HttpResponse(content, content_type)
 

	
 
def debug(request):
 
    path = request.get_full_path()
 
    path = path.lstrip('/')
 
    return HttpResponse("Hello, static world: " + path)
 

	
0 comments (0 inline, 0 general)