windows中的django流程(續篇)

一:urls.py 二:views.py def hello(request): return render(request, 「hello.html」) (先不用models如下:1.HttpResponse()或者render()2.templates) 注意:創建文件夾templates,並將其標記成如下,此時文件夾會顯示爲紫色 三 添加model: 1.這裏的設置就像mysql,Book用
相關文章
相關標籤/搜索