Django Book 翻译
菜单>:
TOC
返回
原文:
Edit the settings file in that project, ``mysite/settings.py`` , to tell Django what your database connection parameters are and what the name of the database is. Specifically, provide the ``DATABASE_NAME`` , ``DATABASE_ENGINE`` , ``DATABASE_USER`` , ``DATABASE_PASSWORD`` , ``DATABASE_HOST`` , and ``DATABASE_PORT`` settings. (Note that some of these settings are optional. Refer to Chapter 5 for more information.)
翻译:
编辑项目中的配置文件, ``mysite/settings.py`` ,告诉Django你的数据库连接参数和数据库名。具体的说,要提供 ``DATABASE_NAME`` , ``DATABASE_ENGINE`` , ``DATABASE_USER`` , ``DATABASE_PASSWORD`` , ``DATABASE_HOST`` , 和 ``DATABASE_PORT`` 这些配置信息. (注意,这里面有些配置项是可选的,更多信息参考第五章)
备注:
译者: