Have you looked at django.contrib.sites? I think a combination of this, installing SITE_IDin yours settings.pyand having one WSGI file per “site”, can take care of things.
The EDIT: -v .
django.contrib.sites Django. (django.contrib.sites.models.Site), domain name. , , name , , . domain - , URL-.
SITE_ID settings.py id . settings.py 1 ( ). , .
, name domain Site, , settings.py, ( ?). , , - :
SITE_ID = int(os.environ.get('SITE_ID', 1)
WSGI - :
os.environ['SITE_ID'] = 2
. WSGI , , SITE_ID Apache. , .
, Site ForeignKey ManyToManyField, (, ) .