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 05 Dec '10, 16:52

Guandalino's gravatar image

accept rate: 0%

  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.

permanent link

answered 05 Dec '10, 17:11

johns's gravatar image

johns ♦♦
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 05 Dec '10, 16:52

question was seen: 2,293 times

last updated: 05 Dec '10, 17:11

Features & prices    Sign up    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
© Copyright 2003-2015 Swarma Limited - WebFaction is a service of Swarma Limited