On Wednesday 02 Nov 2005 5:03 pm, Marcos Sánchez Provencio wrote:
> Is 127.0.0.1 not localhost? Can you explain that? The 127.X.X.X net
> _is_ localhost by IP specs, I thought.

this is running in a freebsd jail - 'localhost' will apply to whats 
inside the jail. The postgres database is running on the same physical 
machine but outside the jail - so it needs to be addressed at 
127.0.0.1, and not at 'localhost' - i am no expert in these things and 
anyway they are irrelevant to my question. My question is: when i put a 
string as '127.0.0.1' for the db host, why doesnt init try to access 
that? As mentioned, in the the other site on the same server, django 
has no problem in accessing the database at '127.0.0.1'. So i feel it 
is some bug in init
>
> El mié, 02-11-2005 a las 16:28 +0530, Kenneth Gonsalves escribió:
> > hi
> > i have an application running on a freebsd 'jail'. The postgresql
> > database is hosted on 127.0.0.1 (not localhost). My application
> > runs perfectly with the DATABASE_HOST = '127.0.0.1'. I have now
> > started a second app on the same server. When i run django-admin.py
> > init, it is unable to create the database because it is trying to
> > find the database on the ip address of the server on which it is
> > running and not on 127.0.0.1. I am doing this on the latest svn of
> > django - previously i had done this on svn #6xx. Any clues?

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Reply via email to