R
R
Rushan4eg2017-11-08 23:26:09
Django
Rushan4eg, 2017-11-08 23:26:09

How is data output from a console application?

Good afternoon!
I'm not strong in programming, but I'm learning the basics.
Here is a console program written in C that, when initializing commands, outputs the results to the console as strings. I want to understand where this data is stored in the console application and how to display it in a django frame? As far as I know, django can only fetch data from the database...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2017-11-08
@deliro

subprocess use and capture stdout

R
Robot Chappie, 2017-11-08
@BenderLib

Writes your C program to the stdout output stream. You can write data not to the output stream, but to a file or database. And django will take data from a file or get it from a database. Or use python subprocess for your console utility.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question