示例#1
0
文件: views.py 项目: sourada/mapstory
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
    }))
示例#2
0
文件: views.py 项目: sourada/mapstory
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
    }))
示例#3
0
def manual_include(path):
    return "<div id='manual'>%s</div>" % render_manual(path)
示例#4
0
def manual_include(path):
    return "<div id='manual'>%s</div>" % render_manual(path)
示例#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}))
示例#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}))
示例#7
0
文件: views.py 项目: cholmes/mapstory
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}))