Python 如何在X-editable中使用autocomplete typeahead?
我需要在Django应用程序中使用带有x-editable的typeahead。我的源代码是远程ajax函数。 html: 我得到的错误是需要本地、预回迁或远程 感谢您的帮助Python 如何在X-editable中使用autocomplete typeahead?,python,django,autocomplete,typeahead,typeahead.js,Python,Django,Autocomplete,Typeahead,Typeahead.js,我需要在Django应用程序中使用带有x-editable的typeahead。我的源代码是远程ajax函数。 html: 我得到的错误是需要本地、预回迁或远程 感谢您的帮助 <div class="controls"> <a href="#" id="industry" data-type="typeahead" data-title="Input industry"> {% if init_dict.industry %}{{ init_dic
<div class="controls">
<a href="#" id="industry" data-type="typeahead" data-title="Input industry">
{% if init_dict.industry %}{{ init_dict.industry }}{% else %}Enter industry {% endif %}</a>
</div>
$('#industry').editable({
params: { 'csrfmiddlewaretoken': csrf},
type: 'text',
title: 'Enter industry',
url: '/companyHouse/editable/pending/company/industry/',
pk: {{ init_dict.pending_company_pk }},
source: ['/companyHouse/query/tag/?query=%QUERY'],
items: 8,
value: '{{ init_dict.industry }}'
});