1、直接输出 -- HTTPResponse

















2. MTC -- render_to_response
helloworld.py (view)




helloworld.html (template)









以上是One Piece总结的,下面我再补充一个,其实这个是第一种的变样
3、从template加载




2. MTC -- render_to_response
helloworld.py (view)
helloworld.html (template)
以上是One Piece总结的,下面我再补充一个,其实这个是第一种的变样
3、从template加载