How are you serving the Django project? Are you using Apache?
mod_python? mod_wsgi?

If you are using mod_python or mod_wsgi, you should be able to change
the DJANGO_SETTINGS_MODULE for each site. So basically for each site,
you would have a separate settings file in your project.

So for the first site, set your settings module. This is if using
mod_python, but it's similar for mod_wsgi.

SetEnv DJANGO_SETTINGS_MODULE project.settings_site1

Then for your second site, you can use a different settings module in
the same project.

SetEnv DJANGO_SETTINGS_MODULE project.settings_site2

An example of settings_site1.py would look like this. Just import all
the default settings, then overwrite what you need to.

from settings import *
SITE_ID = 1

I didn't test any of this. But it should work. In theory.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to