On Mon, Mar 22, 2010 at 5:03 PM, Tim Shaffer <[email protected]> wrote:
> 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.
>

That would give you multiple sites from mutiple instances of one
codebase, where as I think the OP is looking for multiple sites from
one instance of one codebase.

Cheers

Tom

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

Reply via email to