[Answer]-Trouble with Django + Bootstrap3 + typeahead.js remote fetching

1👍

Replace the urlpattern as follow (you should not specify query string part):

url(r'^name_autocomplete/$', 'home.views.name_autocomplete'),

And in the view, you get query, while the javascript send query string as q=; so replace the following line:

query = request.GET.get('query','')

with

query = request.GET.get('q','')

Leave a comment