Example #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
    }))
Example #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
    }))
Example #3
0
def manual_include(path):
    return "<div id='manual'>%s</div>" % render_manual(path)
Example #4
0
def manual_include(path):
    return "<div id='manual'>%s</div>" % render_manual(path)
Example #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}))
Example #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}))
Example #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}))