0
I want to develop a website in python, how can i start and run it on web browser
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/
+ 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
+ 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 ^^).
+ 1
Thank You Petko,
i installed Django and now how do i connect MySql database to the webpages