I'm trying to get some python files working on my server/host but can't seem to get much done without using a framework
so, how complex can you get without using Flask or Django?
at the moment, anything other than basic text or sums doesn't seem to work on the web
(Dec 28, 2018 06:15 PM)Red-Leonard Wrote: I'm trying to get some python files working on my server/host but can't seem to get much done without using a framework
so, how complex can you get without using Flask or Django?
at the moment, anything other than basic text or sums doesn't seem to work on the web
Python comes with a very simple http server, does this work for you?
https://docs.python.org/2/library/simplehttpserver.html
It is not meant for production but I am not sure what you really want to do anyways
you can handle http requests with a socket
check this:
https://tools.ietf.org/html/rfc2616 Hypertext Transfer Protocol -- HTTP/1.1
DO NOT DEAL WITH THIS MEMBER
You can use the Http request ,
the Get Data can get args ,
from this args you can run it on you server side. /VPS/..
ok, thanks, but how to run it server side?
I mean, I have a windows server and it was a major hassle just getting 'hello world' up and running - is it worth changing server, persevering with windows, or possibly using node.js (which has easy install with server) instead?
(Dec 31, 2018 03:45 AM)Red-Leonard Wrote: ok, thanks, but how to run it server side?
I mean, I have a windows server and it was a major hassle just getting 'hello world' up and running - is it worth changing server, persevering with windows, or possibly using node.js (which has easy install with server) instead?
Node.js is really easy to setup and you should probably use it if you aren't going to use flask
Jan 2, 2019 12:40 PM
(This post was last modified: May 19, 2019 05:20 PM by Nachfolger.)
(Dec 31, 2018 03:45 AM)Red-Leonard Wrote: ok, thanks, but how to run it server side?
I mean, I have a windows server and it was a major hassle just getting 'hello world' up and running - is it worth changing server, persevering with windows, or possibly using node.js (which has easy install with server) instead? ignore this Any reason you're opting to not use PHP? Sure, Node works, but if you're using it just because some hipster developer said it's the future, I would make the case you haven't weighed your options.
Je t'aime
(Apr 22, 2022 04:39 PM)-Scrub Wrote: Jokes on you, I'm not smart enough to know what he's talking about.
Jan 3, 2019 05:25 AM
(This post was last modified: Jan 3, 2019 05:26 AM by Red-Leonard.)
thanks for the replies,
think I'll stick with Flask for now
will prob make a thread in the 'database' section soon, as I'm a little stuck on making changes to that right now....
|