The first knowledge of Python web framework-Django

Source: Internet
Author: User
Django is an open-source Web application framework written by Python. The MVC Software Design pattern is used, i.e. model M, view V and Controller C. It was originally developed to manage some of the news content-based websites of the Lawrence Publishing Group. and was released in July 2005 under the BSD license. The framework is named after the Belgian gypsy jazz guitarist Django Reinhardt.

The main goal of Django is to make it easy to develop complex, database-driven Web sites. Django focuses on component reusability and "pluggable", agile development and dry rules (Don ' t Repeat yourself). Python is commonly used in Django, and even includes configuration files and data models.

Django officially established the foundation on June 17, 2008.

The core of the Django framework includes an object-oriented mapper as a data model (defined in the form of Python classes) and a medium between relational databases, a URL dispatcher based on regular expressions, a view system for processing requests, and a templating system.

The core framework also includes:

A lightweight, stand-alone Web server for development and testing.

A form serialization and validation system for converting between HTML forms and data that is suitable for database storage.

A caching framework, and several caching options are available.

Middleware support that allows interference in all stages of request processing.

The built-in distribution system allows components in the application to communicate with each other using predefined signals.

A serialization system that can generate or read a Django model instance in XML or JSON notation.

A system for extending the capabilities of the template engine.

Django contains a number of applications in its "contrib" package, including:

An Extensible Authentication system

Dynamic site Management page

A set of tools that generate RSS and Atom

A flexible commenting system

Tools to generate Google sitemap (Google Sitemaps)

Tools to prevent cross-site request forgery (Cross-site requests forgery)

A set of template libraries that support lightweight markup languages (textile and Markdown)

A set of infrastructure to assist in the creation of geographic information systems (GIS)

Django can run on the Apache 2 with MoD python enabled, or any WSGI compatible Web server. Django also has the ability to start the fastcgi service, so it can be applied to any machine that supports fastcgi.

  • 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.