Re: Changing the database name by subdomain name

2010-01-25 Thread bluellyr
Hi, How can I define the settings file in each of the vhosts? I'm using lighttpd and I can't find any info on this, can you help me? thanhs On Jan 5, 1:24 pm, bluellyr wrote: > Hi! > > thanks for replying, I think that will get the things done :) > > On Jan 4, 4:41 pm, Daniel Roseman wrote: >

Re: Changing the database name by subdomain name

2010-01-25 Thread bluellyr
Hi! I'm using the lighttpd and fastcgi to run the django application, my question is where can I pass the settings value for the other settings file? can yiou give me a example? thanks On Jan 5, 1:24 pm, bluellyr wrote: > Hi! > > thanks for replying, I think that will get the things done :) >

Re: Changing the database name by subdomain name

2010-01-05 Thread bluellyr
Hi! thanks for replying, I think that will get the things done :) On Jan 4, 4:41 pm, Daniel Roseman wrote: > On Jan 4, 4:28 pm, bluellyr wrote: > > > Hi! > > > I'm using the Django 1.0.2 and trying to connect to a diferent > >databasename using the subdomain by reference, > > when I accesshttp

Re: Changing the database name by subdomain name

2010-01-04 Thread Daniel Roseman
On Jan 4, 4:28 pm, bluellyr wrote: > Hi! > > I'm using the Django 1.0.2 and trying to connect to a diferent > database name using the subdomain by reference, > when I accesshttp://.mydomain.comI want to connect to the "" > database and when accessing to thehttp://.mydomain.comI want to

Re: Changing the database name by subdomain name

2010-01-04 Thread Shawn Milochik
It seems like you should have two instances of Django running. Each one will be listening on a different port, and run a different settings.py file. In short, copy your settings.py file, and change the copy to use the alternate database. Then, run two copies of Django, like this (may vary based

Changing the database name by subdomain name

2010-01-04 Thread bluellyr
Hi! I'm using the Django 1.0.2 and trying to connect to a diferent database name using the subdomain by reference, when I access http://.mydomain.com I want to connect to the "" database and when accessing to the http://.mydomain.com I want to connect to the "" database. There is