Below follows my wsgi script.
But i don't think it's not being able to read the settings.py because
it is actually complaining about the info that is inside there. (the
DB infos)
:S

---------wsgi
-------------------------------------------------------------------------------------------
import os
import sys

sys.path.append('*******/wsgi/src/mysite/')
sys.path.append('*/wsgi/')

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
---------wsgi
-------------------------------------------------------------------------------------------

On Dec 17, 9:51 pm, Anurag Chourasia <anurag.choura...@gmail.com>
wrote:
> You might want to check your wsgi script.
>
> Looks like the environment variables that you have in there are wrong and
> not allowing the import of settings.py
>
> Regards,
> Anurag
>
> On Sat, Dec 18, 2010 at 1:32 AM, armandoperico 
> <armandoper...@hotmail.com>wrote:
>
>
>
>
>
>
>
> > Hi,
> > this is the first time i try to deploy a django project and i'm not
> > being able to solve a problem.
>
> > 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?
>
> > The fact is that when i try to connect to the database using psql -
> > U... is working fine, so postgree is working ok, it seems to be with
> > django :S
>
> > Exception Location:     /usr/lib/python2.6/site-packages/django/db/
> > backends/postgresql_psycopg2/base.py in _cursor, line 136
>
> > this is my django version (just in case): 1.2.3
>
> > Anyone here has faced this problem ?
> > have any ideas?
>
> > Thanks
>
> > --
> > 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.

Reply via email to