File diff e1dfd65c3a6e → 5c4cc1e2e114
www/conservancy/static/views.py
Show inline comments
...
 
@@ -42,16 +42,18 @@ def index(request, *args, **kwargs):
 
    fullpath = STATIC_ROOT + path
 
    if not os.path.exists(fullpath):
 
        # return HttpResponse("Sorry that's a 404: " + path)
 
        return handler404(request)
 
    template = loader.get_template(path)
 

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

	
 
    kwargs['sitefundgoal'] = fundgoal_lookup('supporterrun')
 

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

	
 
def debug(request):
 
    path = request.get_full_path()
 
    path = path.lstrip('/')