Django Book 翻译
菜单>:
TOC
返回
原文:
To save you time, Django automatically derives the name of the database table from the name of your model class and the application that contains it. A models database table name is constructed by joining the models app label the name you used in ``manage.py startapp`` to the models class name, with an underscore between them.
翻译:
为了节省时间,Django通过你定义的模型的类名和所在的应用程序的名称自动得到数据库的表名,它是由模型的应用程序名称——就是你执行 ``manage.py startapp`` 命令所指定的应用程序的名称——和模型的类名组成的,它们之间通过下划线进行连接。
备注:
译者: