Open Python-web Development----Django

Source: Internet
Author: User

Why use the Django framework?


Lightweight Flask, all-in-all Django, heavy-duty Pyramid


Case study: Python Web development Framework

Django (too Heavy)-web.py (light weight), Tornado (not concise), bottle (introduction), Flask (more plug-in support) , the two-time development framework based on flask is now used within the team.

When I first learned Django, because I was searching the Python web development Framework, the full screen was about Django. Later thought, too TMD heavy.

Just go and see web.py. Web.py actually quite good, but surprised to hear the author passed away no maintenance , heart a cool.

Just heard that tornado performance is good, like web.py, learning is not bad. I've always liked the high performance of this non-blocking IO
Later, Gevent was exposed to the idea that non-blocking IO had a more elegant way of implementing it.

later friends recommended Flask , because it is very similar to bottle, but for the large Project organization support better, and plug-ins more, better ecology.

Python mock Django Framework
Day 5-writing a web framework
Bottle:python Web Framework


for beginners, progressive is the most important, I recommend learning Flask (Welcome | Flask (A Python microframework) )
Flask is so light that it can develop a simple website with very little cost. Very suitable for beginners to learn.
Flask Framework Learning, you can consider the use of plug-ins. For example, use Wtform + flask-wtform to validate form data, and use SQLAlchemy + Flask-sqlalchemy to control your database.
BTW: The shell net is based on Flask development.

Additional frameworks are also briefly introduced:
1. Django is an all-rounder framework. At present, the use of Django is still very wide, there is the value of learning, but not recommended for beginners to learn, because there are too many things to learn , a sudden difficult to absorb will lose interest. Of course, the purpose of Django is to enable developers to quickly develop a website, which provides many modules, of which my favorite is the admin module,http://your.site.com/admin into the site of the backstage (built-in OH ~) Easy to manipulate the data, and so on .... So, if you're familiar with Django, Papapa will write a prototype of the site in a few words.


2. Tornado. The legendary high-performance frame. Http://www.tornadoweb.cn/Tornado is a good framework that supports the functionality of asynchronous processing, which is its feature that other frameworks do not support. Another point is that Tornado's design seems to pay more attention to RESTful URLs. But Tornado provides the modules that the site needs to use, and the rest needs to be extended by the developers themselves (custom modules also need to be modified). For example, database operations, although the built-in a database module (and then independent out, now called TORNDB,bdarnell/torndb GitHub But it doesn't support ORM, and it's hard to develop quickly. If you need ORM support, you will also need to write a layer to connect SQLAlchemy and Tornado, and there is a pit.
BTW: Knowledge is the foundation of the development of Tornado. Tornado isFacebook is open source, coupled with its own excellent code quality and proud of the efficiency of performance, is very fire, the birth of a large number of excellent products, such as you raised this question on itKnow,Quora,INK361,Zone 42. Metand so on.


3. Bottle. Bottle and Flask all belong to the lightweight WEB framework. But the Bottle seemed lonely. I think it's related to his API design. The individual thinks that the Bottle use is not so handy, therefore also uses less. There are not too many introductions here.
4. web.py. is also very light a frame, the use is not many, the author passed away unmanned maintenance , also does not do the introduction.
5. Web2py. I don't see any introduction to this frame upstairs. This framework is Google on the basis of web.py two times developed, compatible with GAE. Performance is said to be very high, used to do his own home page, it feels good. The disadvantage is that the extension support is not very good and needs to be extended by itself.
6. Quixote. The famous watercress is based on the development of Quixote. Unlike the frameworks above, Quixote's routing is somewhat special. In addition Quixote performance is said to be good.



Http://baike.baidu.com/link?url=LBld26v6CDRg8gHp0Y-7D94YD3GwRKbv2KfbClpm_xkFwmCMo4pxzQwJTnrz_gi12LOvBfGqQoctKJWls2VgxK

This article is from the "Wild Goat" blog, please be sure to keep this source http://yeshanyang.blog.51cto.com/8845896/1782459

Open Python-web Development----Django

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.