django框架編寫web網頁「hello world」

1、在項目主目錄下創建視圖文件views.py 2、在路由文件urls.py裏配置視圖文件函數 3、創建templates文件夾  存放 web 內容樣式等 在templates文件夾下創建 index.html 4、在setting配置文件裏   配置templates路徑 5、運行服務器    打開網頁  就可以顯示了
相關文章
相關標籤/搜索