Django数据库之显示

一、修改应用blog下的views.py

二、在应用下创建模板templates,并在该文件下新建show_author.html和show_book.html

三、编辑urls.py

四。编辑show_author.html和show_book.html两个页面:

show_author.html:

页面访问,返回结果:

#################################################

show_book.html

页面访问,返回结果:

猜你喜欢

转载自blog.csdn.net/u014450465/article/details/83315743