There is the following source structure:
/packages/...
/packages/global_settings.py # this is the global settings file
imported from each client settings file
/clients/...
/clients/client1/settings.py # client specific settings file (see code
above), each client is running in its own process so th
for cfg in settings_modules:
cfg.TEMPLATE_DIRS = ("/clients/"+ cfg.SITE_FOLDER+"/templates",
"/packages/apps/templates")
cfg.MEDIA_FILES_PREFIX = 'http://'+ cfg.SITE_DOMAIN+'/media/'
cfg.VIDEO_FILES_URL = 'http://'+ cfg.SITE_DOMAIN+'/video/'
cfg.VIDEO_FILES_ROOT = '/clients/'+ cfg.S
My settings file
---
from global_settings import *
SITE_FOLDER = 'mypipe'
SITE_DOMAIN = 'localhost'
SITE_NAME = 'My Pipe'
SITE_ID = 1
TEMPLATE_DIRS = ("/clients/"+SITE_FOLDER+"/templates", "/packages/apps/
templates")
MEDIA_FILES_PREFIX = 'http://'+SITE_DOMAIN+'/medi