login community faq
0
1

Suppose that I want to deploy two web sites using Django and mod_wsgi for Apache.

Q1: does it necessarily imply that two Django projects must exist, or maybe a single project can handle two (or more) sites with some form of dispatch?

Q2: does one project imply one copy of Django loaded in memory, two projects -> two copies of Django, and so on? In this case it would be much more convenient to opt for 1 project/app able to handle more sites.

Please clarify! Thanks

asked Dec 05 '10 at 16:52

Guandalino's gravatar image

Guandalino
3718


  1. You can set up 1 apache instance to serve multiple Django instances with VirtualHost directives. This was addressed here, http://community.webfaction.com/questions/199/share-a-django-webfaction-app-between-multiple-projects

  2. Each control panel application is its own server stack. Although it is possible to run more than 1 django from 1 apache it also increases the likelihood there will be bottlenecks as it increases the load of that 1 apache process. You would eventually solve this by increasing the ServerLimit directive and other thread related directives, so ultimately it is simpler and about as effective to just use 1 app per project.

answered Dec 05 '10 at 17:11

johns's gravatar image

johns ♦♦
340427

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×643
×44
×18
×3

Asked: Dec 05 '10 at 16:52

Seen: 1,684 times

Last updated: Dec 05 '10 at 17:11

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited