I’m trying to create site using Django framework. I looked on tutorial on Django project site but contains much information which I don’t need. I have python scripts which provides output and I need to have this output on the web. My question is how simply manage Django to have link which start the script and provides its output on the web or perhaps you provide the link where I can read about this?
Thank you.
That is not what Django is for. What you want to do can be achieved with something as simple as this:
Observe the
self.wfile.writeline. Whatever you write there ends up in the browser. If it matters, you can useself.pathin theHandlerto check which file was requested.Tested with Python 2.6.4, accessed the server with Chrome browser.