Django (web framework)

Django

The default Django page
Original author(s) Lawrence Journal-World
Developer(s) Django Software Foundation
Initial release July 21, 2005 (2005-07-21)
Stable release 1.3.1 / September 9, 2011; 5 months ago (2011-09-09)
Development status active
Written in Python
Size 6 MB
Type Web application framework
License BSD License
Website djangoproject.com

Django ( /ˈæŋɡ/ jang-goh)[1] is an open source web application framework, written in Python, which follows the model-view-controller architectural pattern.[2] It was originally developed to manage several news-oriented sites for The World Company[3] of Lawrence, Kansas, and was released publicly under a BSD license in July 2005; the framework was named after guitarist Django Reinhardt.[4] In June 2008 it was announced that a newly formed Django Software Foundation will take care of Django in the future.[5]

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 (create, read, update and delete) interface that is generated dynamically through introspection and configured via admin models.

Contents

Components

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

Also included in the core framework are:

Bundled applications

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

Applications built on Django

Server arrangements

Django can be run in conjunction with Apache using mod_wsgi or mod_python. Django also includes the ability to launch a FastCGI server, enabling use behind any web server which supports FastCGI. Another deployment option is nginx and uwsgi. It should also be possible to use other WSGI-compliant web servers. Django officially supports four database backends: PostgreSQL, MySQL, SQLite and Oracle. MS SQL backend can be used with django-mssql but only in Microsoft operating systems, similarly external backends exist for IBM DB2 , SQL Anywhere and Firebird. There is a fork named django-nonrel which supports NoSQL databases like MongoDB and Google App Engine's Datastore.

Django may also be run in conjunction with Jython on any Java EE application server such as GlassFish or JBoss. In this case django-jython must be installed in order to provide JDBC drivers for database connectivity, which also provides functionality to compile Django in to a .war suitable for deployment.

Versions of Django prior to 1.0 had multithreading issues [14] and it would be recommended that those versions of Django only be used in a single threaded server configuration, such as with Apache prefork MPM using mod_python or embedded mode of mod_wsgi. Although Django 1.0 is principally believed to now be thread safe, some minor threading issues are still occasionally being found; it may be prudent to continue to use a single threaded server configuration and/or stay current with Django releases and notices about the multithreading issues. [14]

Google App Engine includes support for Django version 1.x.x[15] as one of the bundled frameworks.

Integrated development environments

While a number of Django developers use text editors such as VIM, Emacs or TextMate with Django Bundle for their projects, others prefer more specialized tools providing intellisense, code completion, debugging, refactoring, unit testing, etc.[16]

DjangoCon

There is a twice-yearly conference for Django developers and users, named "DjangoCon", that has been held since September 2008. One DjangoCon a year is held in Europe, in May or June;[18] while the other is held in the United States in September, usually in Portland, Oregon.[19]

Books

See also

References

  1. ^ What does “Django” mean, and how do you pronounce it?
  2. ^ Django FAQ about MVC in Django
  3. ^ LJWorld.com / About us
  4. ^ "Django FAQ". Lawrence Journal-World. http://www.djangoproject.com/documentation/faq/. Retrieved 2008-04-01. 
  5. ^ Announcing the Django Software Foundation
  6. ^ "Developers". django-cms.org. http://www.django-cms.org/en/developers/. Retrieved 2009-09-22. 
  7. ^ "Django CMS Apps Comparison". djangoproject.com. http://code.djangoproject.com/wiki/CMSAppsComparison. Retrieved 2009-11-17. 
  8. ^ "Languages used by Django CMS". github.com. http://github.com/divio/django-cms/graphs/languages. Retrieved 2009-11-17. 
  9. ^ CodeReviewBackground – rietveld – Background of the CodeReview (Rietveld) project. – Project Hosting on Google Code. Code.google.com. Retrieved on 2010-12-30.
  10. ^ "What Powers Instagram: Hundreds of Instances, Dozens of Technologies". http://instagram-engineering.tumblr.com/post/13649370142/what-powers-instagram-hundreds-of-instances-dozens-of. 
  11. ^ "20 Creative Websites Running Django". http://fearlessflyer.com/2009/11/20-creative-websites-running-django/. 
  12. ^ "Webcasting with Django". Berkeley Graduate School of Journalism. 2009-05-20. http://multimedia.journalism.berkeley.edu/blog/2009/may/20/webcasting-django/. 
  13. ^ [1] Faculty of Electrical Engineering and Information Sciences at the Ruhr University Bochum
  14. ^ a b DjangoSpecifications/Core/Threading – Django – Trac. Code.djangoproject.com. Retrieved on 2010-12-30.
  15. ^ Running Pure Django Projects on Google App Engine. Code.google.com (2010-11-01). Retrieved on 2011-12-05.
  16. ^ Django development IDEs discussion at Stackoverflow
  17. ^ NetBeans Django Plugin
  18. ^ DjangoCon EU series, Lanyrd.com
  19. ^ DjangoCon US series, Lanyrd.com
  20. ^ The Definitive Guide to Django: Web Development Done Right, Second Edition : 9781430219361. Apress.Com. Retrieved on 2010-12-30.
  21. ^ Practical Django Projects, Second Edition : 9781430219385. Apress.Com. Retrieved on 2010-12-30.
  22. ^ Pro Django : 9781430210474. Apress.Com. Retrieved on 2010-12-30.
  23. ^ Pearson – Python Web Development with Django – Jeff Forcier, Paul Bissex & Wesley Chun. Pearsonhighered.com (2008-10-24). Retrieved on 2010-12-30.

Bibliography

External links