事前にお手伝いをしてくれてありがとう!twitter bootstrapドロップダウンがdjangoテンプレートで動作していません
私の問題は、Twitterのブートストラップのドロップダウンメニュー(navbar用)がうまくいかず、今はとても迷っています。 マイヘッダコード(そうそう、私は彼らの.jsが含まれており、それを呼び出す行う):
<head>
<title>{% block title %}User test{% endblock %}</title>
<!--for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap-dropdown.js"></script><!--dropdown addon-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><!--jquery-->
<script type="text/javascript">
$(document).ready(function(){
$('.dropdown-toggle').dropdown();
});
</script>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}style.css" /><!--link to my style.css-->
<link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" /><!--link to bootstrap's css-->
ドロップダウン持っていると仮定されているメニュー項目:再び
<ul class="nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
{% trans "Logged in" %}: {{ user.username }}
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="{% url auth_password_change %}">{% trans "Change password" %}</a></li>
<li><a href="{% url auth_logout %}">{% trans "Log out" %}</a></li>
</ul>
</li>
<li><a href="/upload/">{{ "Upload your CVS" }}</a></li>
<li><a href="/settings/">{% trans "Settings" %}</a></li>
</ul>
おかげで、
blargie-BLA
ありがとうございます。 –