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