Exemple #1
0
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))
Exemple #2
0
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))