How do I get Django working with Kamaelia Publish?

It is possible to get Django working with Kamaelia Publish, however Django support is highly experimental (as is Django's WSGI support).  Kamaelia Publish includes a built in application for serving Django applications located at plugins.WsgiApps.django_app.  This app (probably) requires two variables to be set in the urls file:  project_path and django_path_handling.

  • project_path is essentially the directory that contains your django project
  • django_path_handling is just a boolean value.  What you set it to isn't really important (I just use "True"), just as long as it is set to something other than an empty string.  This setting exists because django's path handling isn't very WSGI-centric.  It will essentially prepend the WSGI SCRIPT_NAME environment variable to the beginning of the WSGI PATH_INFO variable and store the result in PATH_INFO.

Please note that django support is still experimental (more so than integration with other frameworks) and as such probably won't work right for your purposes.


Kamaelia is an open source project originated from and guided by BBC Research. For more information browse the site or get in contact.

This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)

(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved

This web site is powered by the same code created for the bicker manor project. For more details, contact Michael Sparks at BBC Research directly (cf contact)