我的Django项目中有PHP脚本,它应该从postgresql base获取项目并添加到drop菜单,但是当我使用它时,它只显示为文本
div class="hot-dept-select">
<span class="hot-dept-select__link"><u>Из <span data-departure="accusative">Москвы</span></u></span>
<div class="hot-dept-select__touch">
<script id="hot-dept-select-touch" type="text/html">
<select class="hot-dept-select__select">
<% for (var i = 0; i < items.length; i++) { %>
<option <% if (items[i].value == Global.getDepartureCity()) { %>selected="selected"<% } %>
value="<%= items[i].value %>"
data-value="<%= items[i].value %>"
><%= items[i].nominative %></option>
<% } %>
</select>
</script>
</div>
<div class="hot-dept-select__dropdown">
<div class="hot-dept-select__inner">
<script id="hot-dept-select" type="text/html">
<% for (var i = 0; i < items.length; i++) { %>
<div class="
hot-dept-select__item
<% if (i && (items[i].nominative[0] !== items[i - 1].nominative[0])) { %>
hot-dept-select__item_padded
<% } %>
">
<a href="/hot/<%= items[i].value %>" data-value="<%= items[i].value %>"><%= items[i].nominative %></a>
</div>
<% } %>
</script>
</div>
</div>
</div>
Django 1.5.1,python 2.7