Django搭建CMDB系統完整[5](base.html內容頁面)

sktj發表於2018-08-23

vi templates/base.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>CMDB-後臺系統</title>
<link href=”/static/style/authority/basic_layout.css” rel=”stylesheet” type=”text/css”>
<link href=”/static/style/authority/common_style.css” rel=”stylesheet” type=”text/css”>
</head>
<body>
{% block title %}
{% endblock %}
{% block content %}
{% endblock %}
</body>
</html>

urls.py

url(r`^base`,views.base,name=`base`),

cmdbapp/views.py

def base(request):
return render_to_response(`base.html`)


相關文章