Thursday, August 15, 2013

Re: is it possible to use REST API with HTML within Django?

To make calls to remote http-enabled servers, use Requests within your view. The results can be passed to the template in the standard way.

http://docs.python-requests.org/en/latest/

K



On Thursday, August 15, 2013 9:27:26 AM UTC-7, evh wrote:
Hi,

I am having trouble getting REST to work within Django.  Has anyone succeeded in doing this?  How do I embed REST API calls within the HTML that runs my webpage?  I am trying to send "commands" to a device that is connected to my webpage and can do this outside of Django manually in a PowerShell window, but just within my HTML code.

Thanks for any help or advice,
Ed

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate