Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
my wish
#11
i did build a web server in python a few years ago.  we, at a different company, needed to try out a lot of different views of a database, and it needed a lot of changes, over and over without templates.  so the way i made it work was the usual map of a URL to a file path.  if that could be imported with __import__() a method "handle_http_request" existed, then it would be called.  by this point it had forked a separate process.  i could leave the server running and add URLs to the site by just adding the files.  if the file at that file path is not executable it would just be copied to the client.  it was running in an isolated network accessed by secure tunnels only by staff so i didn't add https.  if it were used on the public internet i am sure it would be easily knocked down or worse.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

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