0

I want to develop a website in python, how can i start and run it on web browser

3rd Jul 2017, 7:09 AM
Steven Kabeiraho
Steven Kabeiraho - avatar
4 odpowiedzi
+ 4
As far as I am concerned, you need to install some libraries. The standard library doesn't support web development features. Many Python users install Django or Flask. These libraries comes with build in functions for web developers. You have to read the documentation for Django. I suggest you to find a video tutorials first. See: https://pythonprogramming.net/web-development-tutorials/
3rd Jul 2017, 7:43 AM
Petko Bozhkov
Petko Bozhkov - avatar
+ 3
I am not web developer, so unfortunately I don't know hot to connect your MySQL database to the webpages. You may ask this question in a different post or a different forum. Maybe there is a tutorial somewhere
3rd Jul 2017, 12:16 PM
Petko Bozhkov
Petko Bozhkov - avatar
+ 2
Develloping a web site in Python is only possible in sense of serving (even locally) Html/Css documents, and JS is always required if needs of script functionality inside (on user side)... Django, Flask, Bottle... and so on, are "web server" frameworks, with less or more advanced functionalities to handle dynamically web document (for those which provide less features, you can always complete by other modules/frameworks -- often the same as those integrated in big web frameworks are available as standalone, so you can build your customized web server). Anyway, and unfortunaly, Python cannot be use itself inside web documents, and is not (actually -- who knows in future?) recognized by browsers as basic MIME type (for so, browsers would embed a Python interpretor engine, or at least be sure to can use one installed on host OS, but this will have a lot of security lacks ^^).
3rd Jul 2017, 7:58 AM
visph
visph - avatar
+ 1
Thank You Petko, i installed Django and now how do i connect MySql database to the webpages
3rd Jul 2017, 7:47 AM
Steven Kabeiraho
Steven Kabeiraho - avatar