Django Book 翻译
菜单>:
TOC
返回
原文:
The template to customize is ``admin/index.html`` . (Remember to copy ``admin/index.html`` to your custom template directory as in the previous example.) Edit the file, and youll see it uses a template tag called ``{% get_admin_app_list as app_list %}`` . This tag retrieves every installed Django application. Instead of using the tag, you can hard-code links to object-specific admin pages in whatever way you think is best. If hard-coding links doesnt appeal to you, see Chapter 10 for details on implementing your own template tags.
翻译:
要自定义的模板是 ``admin/index.html`` 。(记得象前面例子一样拷贝 ``admin/index.html`` 到你的模板目录。)打开这个文件,你会看到一个叫做 ``{% get_admin_app_list as app_list %}`` 的模板标签,你可以在这里硬编码你想要的管理页面连接。如果你不喜欢硬编码的方式,请参看 第十章中实现你自己的模板标签章节。
备注:
译者: