[Solved]-Multiple sites using Django and mod_wsgi on Apache


Django breaks the geneated wsgi.py for running multiple Django instances in same process in different sub interpreters. Either use mod_wsgi daemon mode and delegate each to a separate daemon process group, is better anyway, or change:

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PROJECT_A.settings")


os.environ["DJANGO_SETTINGS_MODULE"] = "PROJECT_A.settings"

Similarly for other wsgi.py file.

Leave a comment