Python Forum
Controlling Python Program From Django Front End
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controlling Python Program From Django Front End
#4
Just like any other program, this one could listen to a port for a connection from the website for some message which can be interpreted as a command. After that, it does its things and returns a response back to the website which you can see.
JSON stands for JavaScript Object Notation. Perhaps every programming language can deal with it. It has a simple structure, it's human-readable and consists of key-value pairs. It looks like this:

"person" {
    "first": "Donald",
    "last": "Trump",
    "characteristics": ["president of the USA", "businessman"]
    }
The messages could be a simple text too. It depends on what suits your needs.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: Controlling Python Program From Django Front End - by wavic - May-21-2018, 06:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The function of double underscore back and front in a class function name? Pedroski55 9 756 Feb-19-2024, 03:51 PM
Last Post: deanhystad
  Controlling program with TCP commands lavacode 1 561 Jul-10-2023, 04:39 PM
Last Post: deanhystad
  front-end js and back-end python 3lnyn0 0 1,007 Jun-03-2022, 08:51 PM
Last Post: 3lnyn0
  Controlling text-to-speech pauses with pyttsx3 pmac1300 4 4,529 Mar-14-2022, 06:47 AM
Last Post: Coricoco_fr
  Controlling what get outputted to stdout when running external commands Daring_T 4 2,203 Jan-30-2022, 05:40 PM
Last Post: bowlofred
  Looking For Help On Controlling Philips Hue From PyCharm RickyRay333 4 3,833 Aug-24-2020, 08:33 PM
Last Post: Nickd12
  controlling multiple server simultaneously. caligola 3 3,643 May-11-2018, 05:44 PM
Last Post: wavic
  Controlling trailing zeros with rounding? RedSkeleton007 1 24,548 Jan-25-2018, 07:23 AM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020