Exemple #1
0
def manual(req):
    html = render_manual('manual.rst')
    if 'test' in req.GET:
        return HttpResponse(html)
    return render_to_response('mapstory/manual.html', RequestContext(req,{
        'content' : html
    }))
Exemple #2
0
def admin_manual(req):
    if not req.user.is_staff:
        return HttpResponse("Not Allowed", status=400)
    html = render_manual('admin.rst')
    return render_to_response('mapstory/manual.html', RequestContext(req,{
        'content' : html
    }))
Exemple #3
0
def manual_include(path):
    return "<div id='manual'>%s</div>" % render_manual(path)
Exemple #4
0
def manual_include(path):
    return "<div id='manual'>%s</div>" % render_manual(path)
Exemple #5
0
def admin_manual(req):
    if not req.user.is_staff:
        return HttpResponse("Not Allowed", status=400)
    html = render_manual('admin.rst')
    return render_to_response('mapstory/manual.html',
                              RequestContext(req, {'content': html}))
Exemple #6
0
def manual(req):
    html = render_manual('manual.rst')
    if 'test' in req.GET:
        return HttpResponse(html)
    return render_to_response('mapstory/manual.html',
                              RequestContext(req, {'content': html}))
Exemple #7
0
def manual(req):
    html = render_manual("manual.rst")
    if "test" in req.GET:
        return HttpResponse(html)
    return render_to_response("mapstory/manual.html", RequestContext(req, {"content": html}))