mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
rewrite flask/django
This commit is contained in:
+21
-14
@@ -49,10 +49,10 @@ Django
|
|||||||
------
|
------
|
||||||
|
|
||||||
`Django <http://www.djangoproject.com>`_ is a "batteries included" web
|
`Django <http://www.djangoproject.com>`_ is a "batteries included" web
|
||||||
application framework. By providing many utilities and patterns out of the
|
application framework, and is an excellent choice for creating content-oriented
|
||||||
box, Django aims to make it possible to build complex, database-backed web
|
websites. By providing many utilities and patterns out of the box, Django aims
|
||||||
applications quickly, while encouraging best practices in code written using
|
to make it possible to build complex, database-backed web applications quickly,
|
||||||
it.
|
while encouraging best practices in code written using it.
|
||||||
|
|
||||||
Django has a large and active community, and many pre-built `re-usable
|
Django has a large and active community, and many pre-built `re-usable
|
||||||
modules <http://djangopackages.com/>`_ that can be incorporated into a new
|
modules <http://djangopackages.com/>`_ that can be incorporated into a new
|
||||||
@@ -65,17 +65,24 @@ There are annual Django conferences `in the United States
|
|||||||
Flask
|
Flask
|
||||||
-----
|
-----
|
||||||
|
|
||||||
`Flask <http://flask.pocoo.org/>`_ is a "microframework" for Python. Rather
|
`Flask <http://flask.pocoo.org/>`_ is a "microframework" for Python, and is
|
||||||
than aiming to provide everything you could possibly need, Flask implements
|
an excellent choice for building smaller applications, APIs, and web services.
|
||||||
the most commonly-used core components of a web application framework, like
|
|
||||||
URL routing, request and response objects, and templates. As a user of
|
|
||||||
Flask, it is therefore up to you to choose and integrate other components
|
|
||||||
you may need, such as database access or form generation and validation. For
|
|
||||||
many popular modules, `Extensions <http://flask.pocoo.org/extensions/>`_ may
|
|
||||||
already exist to suit your needs.
|
|
||||||
|
|
||||||
**Support** for flask can best be found in its mailing list. Just shoot an
|
Building an app with Flask is a lot like writing standard Python modules,
|
||||||
email to flask@librelist.com and reply to the confirmation email.
|
except some functions have routes attached to them. It's really beautiful.
|
||||||
|
|
||||||
|
Rather than aiming to provide everything you could possibly need, Flask
|
||||||
|
implements the most commonly-used core components of a web application
|
||||||
|
framework, like URL routing, request and response objects, and templates.
|
||||||
|
|
||||||
|
If you use Flask, it is up to you to choose other components for your
|
||||||
|
application, if any. For example, database access or form generation and
|
||||||
|
validation are not built-in functions of Flask.
|
||||||
|
|
||||||
|
This is great, because many web applications don't need those features.
|
||||||
|
For those that do, there are many
|
||||||
|
`Extensions <http://flask.pocoo.org/extensions/>`_ available that may
|
||||||
|
suit your needs. Or, you can easily use any library you want yourself!
|
||||||
|
|
||||||
|
|
||||||
Web.py
|
Web.py
|
||||||
|
|||||||
Reference in New Issue
Block a user