@@ -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['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('/')