Django (web framework)

From Wikipedia, the free encyclopedia

Jump to: navigation, search
Django
Image:Djangologo.gif

The default Django page
Developer Lawrence Journal-World
Latest release 0.96 / March 23, 2007
Programming language(s) Python
Genre Web application framework
License BSD License
Website www.djangoproject.com

Django is an open source web application framework, written in Python, which loosely follows the model-view-controller design pattern. It was originally developed to manage several news-oriented sites for the World Company[1] of Lawrence, Kansas, and was released publicly under a BSD license in July 2005; the framework was named after gypsy jazz guitarist Django Reinhardt.

Django's primary goal is to ease the creation of complex, database-driven websites. Django emphasizes reusability and "pluggability" of components, rapid development, and the principle of DRY (Don't Repeat Yourself). Python is used throughout, even for settings files and data models.

Django also provides an optional administrative "CRUD" interface that is generated dynamically and configured entirely through data-model definitions.

Contents

The core Django framework consists of an object-relational mapper which mediates between data models (defined as Python classes) and a relational database; a regular-expression-based URL dispatcher; a view system for processing requests; and a templating system.

Also included in the core framework are:

  • A lightweight, standalone web server for development and testing.
  • A form serialization and validation system which can translate between HTML forms and values suitable for storage in the database.
  • A caching framework which can use any of several cache methods.
  • Support for middleware classes which can intervene at various stages of request processing and carry out custom functions.
  • An internal dispatcher system which allows components of an application to communicate events to each other via pre-defined signals.
  • An internationalization system, including translations of Django's own components into a variety of languages.
  • A serialization system which can produce and read XML and/or JSON representations of Django model instances.
  • A system for extending the capabilities of the template engine.

The main Django distribution also bundles a number of applications in its "contrib" package, including:

Django can run on Apache 2 under mod_python, or under any WSGI-compliant web server. Django also includes the ability to launch a FastCGI server, enabling use behind any web server which supports FastCGI.

The following databases are officially supported for use with Django:

The adapter for Microsoft SQL Server is under development, but is still experimental.

The Django Book is a free book (released under the GNU Free Document License) about the Django framework. It is currently in beta and will be published sometime in 2007 by Apress. The current version of the book can be found at http://www.djangobook.com/.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.