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. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.