OK, both answers are great and contributed to what I chose for my final decision.
There is an option ROOT_URLCONF in the settings.py file. I created two settings.py files called settings_desktop.py and settings_mobile.py, and the following code was used in each of them:
from settings.py import * ROOT_URLCONF = 'myapp.urls_mobile'
(or in the case of the desktop, myapp.urls_desktop)
In fact, it provides many interesting features, such as the ability to use different template directories for each site, although in fact I will not.
Then I created two versions of the wsgi file, where the only difference was in this line:
os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings_mobile'
or
os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings_desktop'
In each of the virtual hosts, the only difference is the WSGIScriptAlias line, which points to a different wsgi file for each host.
This allowed me to efficiently use one django application, which could easily host both sites.
Thank you for helping to come up with a good solution.
source share