Multiple Django Sites, One Server

I have several sites for the same client, on the same server where django is running, for example. fooplumbing.comand bazheating.org. These two sites will have different applications for django, i.e. A plumbing site should not have access to heating applications and vice versa. There are no objects shared between two sites, and each of them needs a separate admin site.

Is this possible using the site infrastructure, or do I need to have two separate apache instances on which the sites are running? (Yes, I need to use apache - no choice)

This is a Linux server, so is there any smart way to use symbolic links for this? I am pretty experienced with the basic django development, but I don't know when it comes to server management.

+3
source share
1 answer

Website frameworks will not help you - they should be used as completely separate WSGI applications.

But there is no need for separate instances of Apache. Just configure Apache to work with separate VirtualHosts, each with its own WSGI file.

+7
source

Source: https://habr.com/ru/post/1792919/


All Articles