views:

109

answers:

2

Hello, I need to set up a django development environment that is publicly viewable on the internet (I am doing this for school, and my projects need to be viewable by my professor, this isn't a setup that needs much security). I have a virtual server running Ubuntu 8.04 LTS.

I need to have multiple django applications running in subdirectories of my main site. That is, I need mysite.com to be a static page, mysite.com/wordpress to be my wordpress blog, and mysite.com/django1 mysite.com/django2 etc. to be django projects.

I am using apache, and I will either be using sqlite or mysql.

There seem to be as many different ways to install and configure django as there are websites offering advice, and all of them assume a single project is going to be the root of the website. I'd really appreciate some help, thank you.

A: 

The Django documentation has a page describing deployment on Apache. There is also a section about running multiple installations on the same server.

Daniel Hepper
+1  A: 

You can use

WSGIScriptAlias /django1 /home/keratacon/www/django1/django.wsgi
WSGIScriptAlias /django2 /home/keratacon/www/django2/django.wsgi

in your apache+mod_wsgi config. django.wsgi is a simple python script.

Tobu