Python Twitter引导未显示在模板中

Python Twitter引导未显示在模板中,python,html,django,twitter-bootstrap,Python,Html,Django,Twitter Bootstrap,我将在我的网站中加入twitter引导。然而,当我测试它的时候,我并没有得到预期的结果。我在bootstrap网站上测试了一些我可以在我的页面上包含的东西,但是它们没有显示出来。请帮我解决这个问题!谢谢大家! 这是我的HTML文件 <!DOCTYPE html> <html> <body> <div class="modal hide fade"> <div class="modal-header

我将在我的网站中加入twitter引导。然而,当我测试它的时候,我并没有得到预期的结果。我在bootstrap网站上测试了一些我可以在我的页面上包含的东西,但是它们没有显示出来。请帮我解决这个问题!谢谢大家!

这是我的HTML文件

    <!DOCTYPE html>
    <html>
    <body>

    <div class="modal hide fade">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h3>Modal header</h3>
      </div>
      <div class="modal-body">
        <p>One fine body…</p>
      </div>
      <div class="modal-footer">
        <a href="#" class="btn">Close</a>
        <a href="#" class="btn btn-primary">Save changes</a>
      </div>
    </div>

    </body>
    </html>

看起来您的设置是正确的,但是您还需要在html文件中加载压缩文件

{% load compressed %}

<head>
{% compressed_js 'bootstrap' %}
{% compressed_css 'bootstrap' %}
</head>
{%load compressed%}
{%compressed_js'引导程序'%}
{%css'引导程序'%}

阅读

Use
{{{%compressed_css'bootstrap'%}}}}
的文档(自述文件)中有关用法的更多信息以获取注释。另外,less编译器也存在一些问题。该问题已解决检查此设置:是否更改了默认位置?是否安装了更少的编译器()?(我自己并没有少用,但这就是它的样子)所以我想我让它工作了!它不漂亮,但很管用!!非常感谢你的帮助!我真的很感激!!!很高兴这有帮助。也许你用得越多,你就能想出一个好办法
{% load compressed %}

<head>
{% compressed_js 'bootstrap' %}
{% compressed_css 'bootstrap' %}
</head>