教程地址:http://tutorial.djangogirls.org/zh/django_models/index.html
一、创建一个博客模型
1、 在 blog/models.py
文件中,定义所有的 Models
对象— — 我们将在其中都定义我们的博客文章
# coding:utf-8 from django.db import models from django.utils import timezone # Create your models here. class Post(models.Model): #