External Json data source

20 views
Skip to first unread message

Workino

unread,
Jul 17, 2016, 6:53:29 AM7/17/16
to yourlabs
Hello,
i need some help from you because i'm lost i i don't know how to accomplish this easy task.

I have an external source of data (external API) who sent data in JSON format.

How can i take them and use them in a form with autocomplete-list?

Version is latest.
 

Thank you

James Pic

unread,
Jul 18, 2016, 1:57:02 PM7/18/16
to yourlabs
Hi !

Welcome to the list !

Perhaps you could try to fetch the data in the autocomplete view. In the choices from the JSON api *which are not in the database*, make the returned choices HTML elements have the url data attribute. Then, you need to implement choice creation: http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#creation-of-new-choices-in-the-autocomplete-form
Reply all
Reply to author
Forward
0 new messages