Code


Version 190 (modified by dev@…, 8 years ago) (diff)

linked in to security policy, which is currently of much interest.

Django source code repository and wiki

Django is available open-source under the BSD license.

Browsing code online

Getting involved

Heads up

Django's development version is always being worked on, which means that from time to time there are things that won't work for a while because they're being updated, and new features will be introduced which take a little time to stabilize. Some of them are listed here:

  • ModelInheritance: Write-up discussing how inheritance/subclassing of models should work. Currently this is not implemented in the development version of Django, so if you need model subclassing stick to one of the older stable releases or use workarounds like one-to-one relationships.
  • SchemaEvolution: This is a new feature, under development as a project for the 2006 Summer of Code.
  • RowLevelPermissions: Currently Django's permission system only works at the level of an entire model -- e.g., user "Bob" has access to add flatpages and edit users. This Summer of Code project will extend the permission system to be much more fine-grained, so permissions will be able to be assigned per object instead of per model (so, for example, user "Bob" could be given permission to edit only flatpage number 24 and user number 12, instead of all flatpages and all users).
  • GenericAuthorization: A more flexible authorization system for Django. The new system should allow for ACL's, role-based systems, and Django's current model-level permissions.
  • Generic relations: a "generic foreign key" feature is currently under development, but not yet completed. There is no support for it yet in the admin application, and it is probably unwise to attempt to use it in a production application.
  • FullHistory: A "full content history" implementation with compare, revert, etc. A SoC 2006 project.

Descriptions of major changes to the codebase

Example applications (with source code/templates)

Sites using Django

Code extras

User-contributed documentation

Set-Up

  • Server arrangements: How to use Django with FCGI, Twisted, etc.
  • Setup on Mac OS X Tiger: Includes installing python 2.4 (which isn't required), the latest version of postgresql, and psycopg.
  • WindowsInstall - install django on Windows in 5 minutes (using sqlite and the internal webserver)

Development environment

General

Templates

Internationalization

Performance

Presentations

Web Services/APIs

  • XML-RPC Example of doing XML-RPC in Django
  • WebServices: An example showing how to access a web service (Amazon.com) using Python.
  • FlickrIntegration - One way of integrating flickr with Django

Under discussion

Community