Django is interesting but is it the answer?
I spent today going through the remaining tutorials in the Django documentation.
It has a lot of new concepts
- Databases and using them
- Unit Testing
- MVT model
- Templating
But I'm still unsure how I can do what I want to, with it.
Django seems to be a way to make websites using Python. I'm unsure if what I want to do constitutes as wanting to make a website. Django allows me to introduce databases, create models, make webpages off the contents of the database..
I don't want to do all that. I already have a Python script. All I want is that.. when someone presses a button on a webpage, the server(or my computer) gets a command to run the script and then return the value to be output onto the site.
I'm extremely confused.
"set up a digital ocean server and use system d" is what somebody on Reddit told me. I googled for 'systemd', didn't seem to light any bulbs.
"Compile python code into Javascript" was something I came across too. Transcrypt is something that does this. Of everything, this actually seems like a good plan of action. I think I'll try this out tomorrow.
Failing which, I'll just try to improve the Python code in it's current state only and put it up on Github or something.