1、生成脚手架(APP名:blog)
python manage.py startapp blog
将APP添加如settings.py中的INSTALLED_APPS中:
2、博格的Model:
标题:title
作者:author
链接:slug
内容:body
发布日期:posted
1、生成脚手架(APP名:blog)
python manage.py startapp blog
将APP添加如settings.py中的INSTALLED_APPS中:
2、博格的Model:
标题:title
作者:author
链接:slug
内容:body
发布日期:posted