Python 分页和shell命令行模式

前言 除了手动添加你的文章后外,你还可以用命令行来添加,python 自带了一种命令行 就是 shell   快速添加博文:Shell命令行模式 在你的目录下:mysite python manage.py shell 导入Blog模型: >>> from blog.models import Blog 验证是否成功引用: >>> dir() 查看所有博文: >>> Blog.objects.al
相关文章
相关标签/搜索