Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经安装了 django 调试工具栏,它可以获取 css 和 js,但它仍然显示如下调试工具栏,并且还在页面末尾而不是附近显示它,控制台中没有 js 错误。有任何想法吗?
我遇到了同样的问题。您无需切换到在本地提供文件,使用 S3 提供静态文件就可以了。
在我的情况下(可能在你的情况下),你只需要运行:
$ python manage.py collectstatic
这将更新静态文件——添加调试工具栏正确呈现其样式所需的文件。