аватар question@mail.ru · 01.01.1970 03:00

How to write a site on Python without using frameworks? [closed]

. The answers to it are not accepted at the moment.

& nbsp;

want to improve this question? Title = ""> 9 years ago .

the question arose: how are the sites on python written? I read almost half of the textbook, I use the built -in interpreter on Linux, but I still can’t understand how to use the python to create a site.

I forgot to write what I would like to do without frameworks (i.e. write my own). I did not find any information on the inteet.

аватар answer@mail.ru · 01.01.1970 03:00

Usually use some Web-framework

I recommend starting with

   from  wsgiref  Import  simple_Server  def   app  ( environ, start_response ): :  Start_Response (, [(' content-type ', ' 'text/plain')])   Retu  [ 'Hello World!' ] server = simple_server.wsgisverver (( '' ',  8000 ), simple_Server.wsgirequesthaner) server.set_app (App) server.server ()     

here is the protozoa that gives the HTML page by but not worth Cover the bike. There are a huge number of light frameworks, from which you can use only the necessary components - roaring, patte, etc.

Latest

Similar