def home(req): template = loader.get_template('home.html') #ctx = gf_template.get_context(req, {}) ctx = RequestContext(req, {}) ctx.node_url= settings.NODE_URL or 'http://localhost:3000' if('debug' in req.GET and req.GET['debug']): ctx.debug_info = renderDebugInfo() return HttpResponse(template.render(ctx))
def home(req): template = loader.get_template('home.html') #ctx = gf_template.get_context(req, {}) ctx = RequestContext(req, {}) ctx.node_url = settings.NODE_URL or 'http://localhost:3000' if ('debug' in req.GET and req.GET['debug']): ctx.debug_info = renderDebugInfo() return HttpResponse(template.render(ctx))