我正在使用 django-ajax-selects 从我的数据库中选择一个城市。在字段中输入时,我收到 403 错误(GET 方法)。这是问题所在,它昨天起作用了,我没有碰任何相关的东西。
控制台日志
Forbidden (Permission denied): /lookups/ajax_lookup/city
[30/Jan/2016 15:54:01]"GET /lookups/ajax_lookup/city?term=Lyon HTTP/1.1" 403 22
我的表格
<form enctype="multipart/form-data" id="JobOfferForm" action="" method="POST">
{% csrf_token %}
<div class="row">
<div class="input-field col s12">
<p class="grey-text">Ville</p>
{{ jobOfferForm.city }}
</div>
</div>
<button class="btn waves-effect waves-light" name="jobOfferFormOK" type="submit">Sauvegarder</button>
</form>
提前致谢。