Official way:
1. Run separate wsgi process for each subdomain. Each wsgi process uses
unique Unix or TCP socket.
2. Each wsgi process uses its own Django settings that points to the
specific app's urls.py
3. The web server configuration for each subdomain points to the socket of
the Django app representing that subdomain.

Unofficial way:
Create path rewriting rule in wsgi configuration.

I have used those both ways in the past. If your machine has very limited
RAM,  such as 1 GB or below that,  I suggest you to try the second way.


Regards,

Aldian Fazrihady
https://www.aldianfazrihady.com/en-us/

On Thu, 23 May 2019, 21:53 Jakub Jiřička, <jiricka.k...@gmail.com> wrote:

> Hi,
>
> I want to ask you if someone has solved how to prove that is possible the
> applications in one project run in different subdomains?
>
> I have 1 project (projekt.cz) and provide of 3 applications (app1, app2,
> app3) and I would like to get on my vps (CentOS, Apache, PostgreSQL,
> Django) app1.projekt.cz app2.projekt.cz and app3.projekt.cz
>
> I searched everywhere and I found only django-subdomains and
> django-domains ... unfortunately, I have not managed to get started,
> because out-of-date ...
>
> So, there is someone who can help me with settings Django for this
> task/problem?
>
> Many thanks and regards
> Jakub
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0d2ddb92-5aec-4155-9071-d8c3a69ebee6%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/0d2ddb92-5aec-4155-9071-d8c3a69ebee6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN7EoAbNGEhsemXw6VV%2BPu3uvSTsRpX%2Bo2Y4AOJBicCcv%3DpAsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to