could it be something related with permissions ?! because i have to change everything to "apache" - chown -R apache ../ myproject_folder/
which would be the right permissions to have ? thanks a lot On Dec 17, 10:04 pm, Anurag Chourasia <anurag.choura...@gmail.com> wrote: > On this server, are you able to connect to the PostGre database using the > command line? > > psql -U myuser -h 127.0.0.1 -p 5432 -d dbname > > Regards, > Anurag > > On Sat, Dec 18, 2010 at 2:19 AM, armandoperico > <armandoper...@hotmail.com>wrote: > > > > > > > > > on settings.py.. > > > DATABASES = { > > 'default': { > > 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add > > 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. > > 'NAME': 'dbname', # Or path to database > > file if using sqlite3. > > 'USER': 'myuser', # Not used with > > sqlite3. > > 'PASSWORD': 'mypass', # Not used with > > sqlite3. > > 'HOST': '127.0.0.1', # Set to empty > > string for localhost. Not used with sqlite3. > > 'PORT': '5432', # Set to empty string for > > default. Not used with sqlite3. > > } > > } > > > On Dec 17, 9:25 pm, Christophe Pettus <x...@thebuild.com> wrote: > > > On Dec 17, 2010, at 12:02 PM, armandoperico wrote: > > > > > On my local machine everything is running fine, but when i try to > > > > deploy to a running server with apache (mod_wsgi), i'm getting the > > > > following error (database related): > > > > > Caught OperationalError while rendering: could not connect to server: > > > > Permission denied > > > > Is the server running on host "127.0.0.1" and accepting > > > > TCP/IP connections on port 5432? > > > > What's your database configuration on the Apache machine? > > > > -- > > > -- Christophe Pettus > > > x...@thebuild.com > > > -- > > 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<django-users%2bunsubscr...@google > > groups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. -- 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.