+ 16

Is it possible to create a webpage solely using Python?

It's a bit of a weird question, but I am really curious, tho (°~°)

1st Dec 2018, 8:04 AM
kliris
kliris - avatar
18 ответов
+ 2
Python is an easy, flexible and powerful general purpose programming language (which is specially suited for web development), but you should bear in mind that in order to become a web developer you must learn several different skills besides python. The first basic skill you must learn is HTML. HTML is the markup language of the web. All web pages are created with HTML, which defines the different elements contained in a web page. Then you should learn CSS, which is another little language that defines the way each HTML element looks within a page (its color, the font type, its position on the page, etc). And the third skill you should master to become a complete web developer is javascript. Javascript is a scripting language, just as python, but it runs within the browser. It is a fundamental part of HTML5 (the newest incarnation of the HTML , which powers all the new applications being written for the web and mobile phones and tablets (iphone, ipad, blackberry, etc...). HTML + CSS + JAVASCRIPT are different parts of the whole HTML5 platform, and they all work in tandem to create a full web application. https://crbtech.in/programmes/java-training-programme
3rd Dec 2018, 10:20 AM
meenal deshpande
+ 29
Hello We cannot create by only Python it just a connective code for the storage purposes from database and to ur parricular website.. U pls see this link u may clear https://www.quora.com/How-do-you-use-Python-to-make-websites
2nd Dec 2018, 6:39 AM
Jas
Jas - avatar
+ 22
You can create all the backend with python. For the front end, a browser can only interpret html and javascript, so either you create pages natively in those languages, or you have to create python code that "writes" the html and javascript code that will be sent to the client browser. (or use python libraries that would do that for you)
1st Dec 2018, 10:14 AM
ifl
ifl - avatar
+ 15
Technically no... Web pages contents would be descripted using html language
1st Dec 2018, 8:40 AM
KrOW
KrOW - avatar
+ 12
To build a website with Python, you simply create an empty file, put the following code inside it, name it with a .py extension and run it. If you visit localhost:5000 you will see the website. Yes, it's just a page with plain text, but it is still a website. Python can be used to build server-side web applications. While a web framework is not required to build web apps, it's rare that developers would not use existing open source libraries to speed up their progress in getting their application working. Python is not used in a web browser
2nd Dec 2018, 11:26 AM
deepak sharma
deepak sharma - avatar
+ 7
Web development can be done with python.For this you can learn Django framework or flask framework of python.
1st Dec 2018, 4:54 PM
Maninder $ingh
Maninder $ingh - avatar
+ 6
Of cources, you can but not enough For example (Flask): from flask import Flask app = Flask(__name__) @app.route('/') def index(): ....return "<h2>Hello World</h2>" if __name__ == '__main__': ....app.run(host='0.0.0.0', port=5000, debug=True)
2nd Dec 2018, 7:45 AM
danvetio
danvetio - avatar
+ 4
50/50, better to use HTML
2nd Dec 2018, 10:48 AM
Nikita Choban
Nikita Choban - avatar
+ 4
yes sure !
3rd Dec 2018, 12:49 AM
Mostafa V.N
Mostafa V.N - avatar
18th Apr 2019, 3:38 AM
Laurent Chretien
Laurent Chretien - avatar
+ 3
technically, it is not possible to create any webpage without using HTML. HTML is must necessary to create any web page. you can create a python program and add it into your HTML page.
3rd Dec 2018, 11:13 AM
Meet Bhanderi
Meet Bhanderi - avatar
+ 2
Yes if you use python to write the HTML required
2nd Dec 2018, 1:17 PM
Rfs
Rfs - avatar
+ 2
At end a website is constituited by html code (mainly) because browsers understand only it (beside css and js). Then, if your question is "Can i use only the python language for build a web page?", the answer is not because you have to put html code inside python... Instead if your answer is "Can i integrate python for build a web page?" the answer is yes, but remember that browsers CANNOT understand python language... You can use it for make a web server but this is possible virtually with any language
2nd Dec 2018, 2:28 PM
KrOW
KrOW - avatar
+ 2
No. Haha, no. Because as others here said, python is able to *script* the services for clients to receive/servers to serve, and python is great for scripting this together, but the language spoken by the Clients and Servers in web applications is not python, its HTTP, then above that its HTML and CSS and JS. Python can help script the actions of every element in your web application, in the same way as most other languages can, but its just like saying you can run a multinational company with an english speaking CEO.
3rd Dec 2018, 12:53 AM
Genghis
Genghis - avatar
+ 1
Yes ,definitely ! But not more complex
2nd Dec 2018, 6:03 PM
Akshay Madrikar
Akshay Madrikar - avatar
0
hello
4th Dec 2018, 10:03 PM
mahmud