+ 3

Python instead of JavaScript

Can you use python for web development(with HTML and CSS ) instead of JavaScript??

19th Aug 2019, 8:22 AM
Majd Suhail
Majd Suhail - avatar
3 Antworten
19th Aug 2019, 9:39 AM
Gordon
Gordon - avatar
+ 1
You need to flip that around, you want to run server-side python code that renders your sexy HTML5 GUI. There are many Python frameworks that are suitable to this, including web2py, django, and my personal favorite flask. Any of these frameworks will let your python code run, then render the HTML with python variables/functions available by using a templating engine (for example Flask uses Jinja template). Tutorials are readily available for all of these python libraries, but if you want to take a look at Flask, I can recommend Miguel Grinberg's excellent tutorial series. [1] [1] https://stackoverflow.com/questions/21913118/run-python-code-using-html5
19th Aug 2019, 8:40 AM
Tom Hammerbacher
Tom Hammerbacher - avatar
0
Do brython + HTML+css replace python frameworks(ex:Django) Tom Hammerbacher Gordon
19th Aug 2019, 5:01 PM
Majd Suhail
Majd Suhail - avatar