0
How a make a site with phyton?
Index.py on sever?
3 odpowiedzi
+ 6
It's a bit more complex - try looking for Django or Flask frameworks and use Python to build a dynamic website with it.
+ 3
The logical isn't the same than for Php: Php was designed for web serving and templating Html from the beginning, before really thinking to MVC like stuff... Other languages today providing web server framework, were extended to this purpose, with long years of experiences trying to develop separate framework php from content html ( finaly a Php framework is a framework inside another on some way ).
But basically, instead of running script less or more inside html files for Php, even only server side, with Python web frameworks ( or Ruby, Java... ) the idea is to handle the users http request, and have an app running to switch between different function / module and serve documents depends on url filters...
Next, you retrieve a similar working to handle the three Model View Controler to build dynamically ( or not ) the Html asked...
+ 1
Many popular sites like Instagram, youtube use python. The most popular python framework is Django. But flask is also a popular choice which is a little smaller framework than Django but you can create awesome stuff using any of these two frameworks.