Django Book 翻译
菜单>:
TOC
返回
原文:
1. In your settings file, youll need to define ``MEDIA_ROOT`` as the full path to a directory where youd like Django to store uploaded files. (For performance, these files are not stored in the database.) Define ``MEDIA_URL`` as the base public URL of that directory. Make sure that this directory is writable by the Web servers user account.
翻译:
1. 在settings文件中你需要定义 ``MEDIA_ROOT`` ,它就是你要保存上传文件的目录的全路径。(出于性能考虑,这些文件不会保存到数据库中。)还要定义 ``MEDIA_URL`` ,刚才那个目录的对外URL。你要确保网络服务器使用的用户对这个目录是可写入的。
备注:
译者: