jQuery Autocomplete with Remote JSON Source + Google App Engine + Python

前端 未结 2 431
逝去的感伤
逝去的感伤 2021-01-28 10:55

So let\'s say I have a webapp which just lets users save their hobbies. So I have Kind like this:

class Hobby(ndb.Model):
    hobby_name = ndb.StringProperty()
<         


        
2条回答
  •  长发绾君心
    2021-01-28 11:49

    I think you should look into Django packages for this type of behaviour.

    This page from djangopackages.com references several packages doing exactly what you want, and written for Django. I suggest you have a look at django-autocomplete-light (the doc is great), or django-selectable, which is more similar to your question's approach.

提交回复
热议问题