How do I start learning Python for the web?
When using a complete framework like Django , Pylons or TurboGears , you can also check out lighter approaches.
For instance:
- Werkzeug: http://werkzeug.pocoo.org/documentation/dev/tutorial.html
- web.py: http://webpy.org/
- Bottle: http://bottle.paws.de/
a source to share
You can also try:
- Tornado, which allows you to write pure python directly into templates.
- web2py is a good start as it does not require installation or configuration, and it has no dependencies, and is fairly easy to learn and use.
- Another good option if you want to speed up your learning curve is to take a customized python crash course with an expert. As an example: https://www.hartmannsoftware.com/Training/Python ?
a source to share
There are many frameworks for building sites in Python. Once you are familiar with Python and the general nature of websites, which will include knowledge of HTTP, HTML, you can proceed with any of the following to make websites with Python:
-
Webapp2 is a simple framework to get you started building websites and using this infrastructure, you can easily create websites and cloud services and host them on Google App Engine. Follow these links for more usage and hosting information: Welcome to webapp2 !, Google App Engine
-
Django - As Alex Remedios pointed out, Django is also a very popular and widely used MVC web map for Python. It's very comprehensive and follows MVC web design principles. Various hosting options are also available for them. You can read more about Django here - Web Framework for Perfectionists with Deadlines, Django Book (for learning about using Django)
-
Flask - Flask is a lightweight framework for building web applications and websites using Python. I don't have much experience with it, but from what I've read, it looks a lot like Webapp2, but not as comprehensive as Django. But it's very easy to pick up and use. Flacon (microplanning in Python)
As far as I know, these are the best ways to use Python on the web. To answer your second question, you can implicitly use Python in conjunction with HTML content, just like you can with PHP. However, there are libraries that do this too:
- Python Wiki - Developer Digi
- Karrigell 3.1.1
If you are building large applications / websites, these two basic structures will pose serious problems for simple tasks.
a source to share
there are many opportunities for learning python for the web. I learned python for web data access from courser.org and the tutorial was very interesting. If you want to learn python for the web, I suggest you learn python for web data access at courser.org
you can also learn python for everyone, which is a 5-course specialization course that covers everything about python.
The interesting part about courser.org is that they provide assignments with deadlines, which means you have to complete each week's assessment for that week itself. They also provide a quiz. You must pass all assignments and quizzes to get the certificate, which is very simple, you can easily complete the assessment and quizzes.
a source to share