parameters: (request)
return_statement: return render_to_response('monitor/httpadd.html', locals(), context_instance=RequestContext(request))
docstring: 添加http监控
docstring_summary: 添加http监控
docstring_tokens: 添加http监控
function: def HttpMonitor(request):
      """ 添加http监控 """
      if request.method == 'POST':
          uf = MonitorHttpForm(request.POST)
          if uf.is_valid():
              uf.save()
      else:
          uf = MonitorHttpForm()
      return render_to_response('monitor/httpadd.html', locals(), context_instance=RequestContext(request))
function_tokens: def HttpMonitor ( request ) : if request . method == 'POST' : uf = MonitorHttpForm ( request . POST ) if uf . is_valid ( ) : uf . save ( ) else : uf = MonitorHttpForm ( ) return render_to_response ( 'monitor/httpadd.html' , locals ( ) , context_instance = RequestContext ( request ) )