django 2 ajax search example

25 views
Skip to first unread message

Carl Brubaker

unread,
Mar 24, 2018, 2:12:09 PM3/24/18
to Django users
I am having much trouble getting an AJAX search to work. I am working with django 2, and all the examples and tutorials I can find are django 1.x. The code that I have that almost worked once(I think - it put the request through but never displayed results) has been greatly butchered as I've tried different things to make it work. If I had a working example, I could see how it all fits together. I just haven't gotten there yet. Please help! Thanks!

I would like to see:

views.py
urls.py
ajax.js
template.html

I can take something apart and figure out how it works, I just haven't found one together yet. If you can point me to a working example (in django 2), I would greatly appreciate it.
Reply all
Reply to author
Forward
0 new messages