Django Book 翻译
菜单>:
TOC
返回
原文:
Each model generally corresponds to a single database table, and each attribute on a model generally corresponds to a column in that database table. The attribute name corresponds to the columns name, and the type of field (e.g., ``CharField`` ) corresponds to the database column type (e.g., ``varchar`` ). For example, the ``Publisher`` model is equivalent to the following table (assuming PostgreSQL ``CREATE TABLE`` syntax):
翻译:
每个模型通常对应于单个数据库表,每个属性模型 通常对应于数据库表的列。属性名称对应 列名称和类型的字段(如。”、“CharField”)对应于数据库列 类型(如。”、“varchar””)。例如,“出版商“模型相当于以下 表(假设PostgreSQL‘创建表的语法):
备注:
译者: