You are here: Home > Diamanda Applications Set > Diamanda and mod_python

Diamanda and mod_python

 
Diamanda usage under mod_python is in general the same as using other django apps. The difference is with folders in PythonPath, you need to add two subfolders - diamandas/cbcplugins/cbcplugins/ and diamandas/. A sample config:
Alias /site_media/ "/home/piotr/svn/biblioteka/site_media/"
 <Location "/">
     SetHandler python-program
     PythonHandler django.core.handlers.modpython
     SetEnv DJANGO_SETTINGS_MODULE settings
     PythonPath "['/home/piotr/svn/biblioteka/'] + ['/home/piotr/svn/biblioteka/diamandas/'] + ['/home/piotr/svn/biblioteka/diamandas/cbcplugins/'] + sys.path"
     PythonDebug On
 </Location>
 <Location "/site_media">
 SetHandler none
 </Location>
Hosting NRC-FOSS at AU-KBC.. Django/Python powered.