Django-django Framework Brief Introduction

Source: Internet
Author: User

A brief introduction to the Django Framework


This address: http://blog.csdn.net/caroline_wendy/article/details/29172271





1. Introduction

Django is an open-source Web application framework, written by Python.

Using the MVC software design pattern, i.e. model M, view V and Controller C.

It was originally developed to manage some of the news content-based sites of the Lawrence Publishing Group and was published 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 easier to develop complex, database-driven 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.


2. Components

The core of the Django framework consists of:

An object-oriented mapper used as a data model (defined in the form of Python classes) and as a medium between relational databases;

A URL dispatcher based on the regular table;

A view system for processing requests;

A template system.

The core framework also includes:

A lightweight, independent webserver for development and testing;

A form serialization and validation system for conversion between HTML forms and data suitable for database storage;

A caching framework, and there are several ways to choose the cache;

Middleware support, agree to intervene in all stages of request processing;

The built-in distribution system agrees with the components in the application to communicate with each other using the signals defined in advance;

A serialization system that can generate or read a Django model instance that is represented in XML or JSON;

A system for extending the capabilities of the template engine.


3. Built-in Applications

Django contains a very great number of applications in its "contrib" package, which contain:

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 requests forgery (Cross-site request forgery);

A set of template libraries that support the Lightweight markup Language (textile and markdown);

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


4. Server Deployment

Django can execute on Apache 2 with MoD python enabled, or whatever WSGI compatible webserver.

Django also has the ability to start the fastcgi service, so it can be applied to any machine that supports fastcgi.

The following database engines are officially supported by Django:

PostgreSQL \ MySQL \ SQLite \ Oracle;

The adapter for Microsoft SQL Server is under development and is in the pilot phase.

Django1.0 can already use Jython to perform in whatever j2eeserver.










Django-django Framework Brief Introduction

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.