multiple django installation in one server

27 views
Skip to first unread message

miarisoa sandy

unread,
Sep 7, 2016, 1:31:50 PM9/7/16
to Django users
Hi guys,

I hope you are doing fine.
I have googled it but no fruitful results.
I am a newbie in django and I wonder what is the number maximum django that I can install in one server??
I have a lot of projects that I would like to check with django ( one project -> one django) to avoid some confusion with each project (PHP project).
Or what is the best way for me??

The server is: Ubuntu 12.04, intel core i5 3.2Ghz, 4Go of RAM

Waiting to hear from you, thanks for your help.

Best


Asad Jibran Ahmed

unread,
Sep 7, 2016, 2:04:28 PM9/7/16
to django...@googlegroups.com
Hi,
 I have a similar setup for my projects. What I do is:
  1. Create a new virtual environment for the project (https://virtualenv.pypa.io/en/stable/). Virtual environments make sure that each project that you deploy can have it's own set of dependencies that do not conflict with the other projects.
  2. Install your required libraries in the virtual environment
  3. Use uwsgi in the Emperor mode to configure and run each app. Within the uwsgi config you can give it the virtual environment to use.

With this way I run multiple Django apps, each with different requirements, on the same server without any issues. This involves a bit of configuration, which may be daunting if this is the first time you're doing this. If so, please do ask and I'm sure we can guide you further as well.

The number of projects that can be run on one server is very much dependent on what kind of projects you are running, and the kind of traffic your applications handle. My suggestion is to slowly add 1 or 2 projects at a time and monitor the server to make sure it isn't overloaded. If not, repeat. Otherwise get another server and setup the rest of the projects on that.

Regards,

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/33008438-92bf-4283-ab52-b6909eb81193%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luis Zárate

unread,
Sep 7, 2016, 4:49:25 PM9/7/16
to django...@googlegroups.com
You can do this steps for ever  django project in the same server




--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/33008438-92bf-4283-ab52-b6909eb81193%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
"La utopía sirve para caminar" Fernando Birri


m1chael

unread,
Sep 8, 2016, 12:00:11 PM9/8/16
to django...@googlegroups.com
virtual environments and virtual hosts through your web server

Reply all
Reply to author
Forward
0 new messages