Django Book 翻译
菜单>:
TOC
返回
原文:
The ``sqlall`` command doesnt actually create the tables or otherwise touch your database it just prints output to the screen so you can see what SQL Django would execute if you asked it. If you wanted to, you could copy and paste this SQL into your database client, or use Unix pipes to pass it directly. However, Django provides an easier way of committing the SQL to the database. Run the ``syncdb`` command, like so:
翻译:
``sqlall`` 命令并没有在数据库中真正创建数据表,只是把SQL语句段打印出来。 你可以把这些语句段拷贝到你的SQL客户端去执行它。当然,Django提供了更简单的 方法来执行这些SQL语句。运行 ``syncdb`` 命令:
备注:
译者: