Code


Version 168 (modified by Simon Willison, 8 years ago) (diff)

revert

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.
  • Multiple authentication backends: the multi-auth branch of Django, currently under development, is abstracting the authentication backend to make it easier to use other authentication systems like LDAP. Check out the documentation to see how this will work.

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