How to run 2 projects on Django on a single VPS with nginx?

Created on the same virtual server project on Django, it works fine. How to attach a second project on the same server?
March 19th 20 at 09:24
2 answers
March 19th 20 at 09:26
Absolutely not understand what you have a problem. To repeat all the same steps that were performed for the first project is to expand the project to create a database, configure WSGI application, to configure another virtual server, Nginx, to register in DNS of another domain name for this server.
the problem is that out of 400. - ocie.Nitzsche commented on March 19th 20 at 09:29
@ocie.Nitzsche, you need to look in the log of the project and find out why it occurs. The most common cause of the 400 error in Django projects is correctly specified in ALLOWED_HOSTS domain name. - Marlon_Kle commented on March 19th 20 at 09:32
@Marlon_Kle, VPS took reg.ru. It bought an additional IP address of the server and it is prescribed in the ALLOWED_HOSTS the second draft. Where you can view the logs of the project? - ocie.Nitzsche commented on March 19th 20 at 09:35
@rSedoy, the error comes directly when you open the website - ocie.Nitzsche commented on March 19th 20 at 09:38
@ocie.Nitzsche,
Where you can view the logs of the project?

It depends on how you configured the WSGI server, you know better. - Marlon_Kle commented on March 19th 20 at 09:41
@Marlon_Kle, how to see how you configured the WSGI server? - ocie.Nitzsche commented on March 19th 20 at 09:44
@ocie.Nitzsche, it's you have it set up. Why are you asking me? - Marlon_Kle commented on March 19th 20 at 09:47
March 19th 20 at 09:28
Vargant, Docker?
Without them you can. - Marlon_Kle commented on March 19th 20 at 09:31
@Marlon_Kle, proxying? - Kara_Flatl commented on March 19th 20 at 09:34
@Kara_Flatl, he is Nginx so that it proxies already. - Marlon_Kle commented on March 19th 20 at 09:37

Find more questions by tags NginxDjango