如何在Django中收集管理模板文件 [英] how to collect admin templates file in django

查看:45
本文介绍了如何在Django中收集管理模板文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了一个 STATIC_ROOT 并收集了所有静态文件,例如css,js,字体.等等.但是我还需要查看一些django管理模板,我想将它们收集到一个文件夹中.反正有这样做吗?我会很感激的.

I just created a STATIC_ROOT and collected all the static files, like css, js, fonts. etc. But I need to see some django admin templates as well and I would like to collect them into a folder. Is there anyway to do that? I would appreciate it.

推荐答案

是的,请转到您的站点软件包目录,然后依次至django,contrib,admin和模板.在那里,您将找到所有模板.复制要编辑的模板,并将其保存在模板文件夹和admib文件夹中.

Yes go to your site packages directory then to django then contrib then admin and then templates. There you will find all the templates. Copy the templates you want to edit and save it in your's templates folder and inside admib folder.

这篇关于如何在Django中收集管理模板文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆