[kforge-dev] Changeset [1155]: [major]: Add support for mounting the KForge application under a …

10: Timeline admin at okfn.org
Fri Jul 27 12:11:36 UTC 2007


[major]: Add support for mounting the KForge application under a uri_prefix (script_name in wsgi terminology). Summary of main changes: 

  * Add www.uri_prefix config variable (already being supported by domain model). 
  * Update kforge.url.[UrlScheme?][1] to use this (add test). 
  * Update kforge.django.settings.urls: use standard django trick which involves copying existing main.py to kui.py and then including into a new main.py with a prefix. 
  * Update all django templates to use it where necessary. 

    * This was automated using perl: changed href="/, action="/. 
    * Plus a couple by hand. 

  * Update kforge.django.apps.kui.views tests to use [UrlScheme?][1].url_for (should have done this as part of [r1127][2] but did not notice at the time). 
  * Fix up some of kforge.django.apps.kui.test tests to use [UrlScheme?][1].url_for throughout (had done most of this in [r1127][2] but a few had got missed). 

   [1]: http://project.knowledgeforge.net/kforge/trac/wiki/UrlScheme
   [2]: http://project.knowledgeforge.net/kforge/trac/changeset/1127 ([major]: change to new url layout system using new Routes based UrlScheme  ...)

URL: http://project.knowledgeforge.net/kforge/trac/changeset/1155




More information about the kforge-dev mailing list