django 페이지 호출 방법

2278 단어 Django1.8 문서
 
장치 보기
IP 범위 쿼리
장치 추가
url(r'^cmdb/addIndex/$', newview.addIndex), url(r'^cmdb/addEquipment/$', newview.addEquipment), : def addIndex(req): return render_to_response('cmdb/addIndex.html') node2:/django/mysite/news/templates/cmdb#cat addIndex.html
/cmdb/addEquipment/ def addEquipment(req): print req.get_full_path() print req.POST['ip'] print req.POST['info'] print req.POST['env'] return HttpResponse('abc123') /cmdb/addEquipment/ wqeqw 22qeqe rewr [24/Dec/2017 12:57:23] "POST /cmdb/addEquipment/ HTTP/1.1" 200 6 Not Found: /favicon.ico [24/Dec/2017 13:02:26] "GET /favicon.ico HTTP/1.1" 404 5532

좋은 웹페이지 즐겨찾기