找到具有目标路径的另一个文件-另一个文件在哪里? [英] Found another file with the destination path - where is that other file?
本文介绍了找到具有目标路径的另一个文件-另一个文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Django中运行 manage.py collectstatic
时,我看到以下消息:
When running manage.py collectstatic
in Django, I see messages like:
Found another file with the destination path 'admin/js/jquery.init.js'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
我尝试运行 find。键入l
来搜索我的Django项目中的符号链接,但是它没有显示任何内容。
I tried running find . -type l
to search for symbolic links in my Django project, but it didn't turn up anything.
我怎么知道在哪里
推荐答案
类似于模板,在两个位置搜索静态文件:
Like templates, static files are searched for in two locations:
- 在
STATIC_DIRS
- 中列出的目录下应用本身中的静态目录。
在这种情况下,该文件似乎由 django / contrib / admin / static
和 / static /
。
In this case, it looks like this file is provided both by django/contrib/admin/static
, and /static/
.
这篇关于找到具有目标路径的另一个文件-另一个文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文