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

Guandalino's gravatar image

Guandalino
37113
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.

link

answered 05 Dec '10, 17:11

johns's gravatar image

johns ♦♦
4.1k28
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

By RSS:

Answers

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

Tags:

×743
×51
×24
×5

Asked: 05 Dec '10, 16:52

Seen: 1,937 times

Last updated: 05 Dec '10, 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