0

How a make a site with phyton?

Index.py on sever?

14th Feb 2017, 6:58 AM
Vinicius Almeida
Vinicius Almeida - avatar
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.
14th Feb 2017, 7:24 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 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...
14th Feb 2017, 12:32 PM
visph
visph - avatar
+ 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.
14th Feb 2017, 7:45 AM
Varun Moghe
Varun Moghe - avatar