I am not too concerned about anything being returned (JSON or otherwise), it is just getting the command to the device. So for example, I have a DVR connected to my webserver, the following is the REST API call:
def play(self): """ Convenience method to start playback. """ self.sendTransportCommandByDescription("Play Command") which should simply start the DVR playback. On Thursday, August 15, 2013 12:45:01 PM UTC-4, BFSchott wrote: > > You need to provide a lot more information before anyone can help. > > Sound like you have at least a view handling GET or POST returning JSON? > > https://docs.djangoproject.com/en/1.5/topics/class-based-views/mixins/#jsonresponsemixin-example > http://django-rest-framework.org > > If you are talking about calling AJAX from inside the browser, I recommend > you check out: > http://www.dajaxproject.com > > There are other tools, but it makes life easier. > > Brian Schott > bfsc...@gmail.com <javascript:> > > > > On Aug 15, 2013, at 12:27 PM, evh <naw...@nc.rr.com <javascript:>> 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...@googlegroups.com <javascript:>. > To post to this group, send email to django...@googlegroups.com<javascript:> > . > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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+unsubscr...@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.