Re: User created in postgresql is not found when Adding Data to the API.

2008-03-29 Thread Chirolo
Hi again. Thank you once again Thomas. I tried what you recommended and nothing worked. Once again the problem was that I'm a newbie trying to learn. Here is what I had done wrong since I started with this problem: One field was never validated in my 'model.py' after running 'manage.py syncdb', bu

Re: User created in postgresql is not found when Adding Data to the API.

2008-03-28 Thread Thomas Guettler
Chirolo schrieb: > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.5/site-packages/django/db/models/base.py", > line 264, in save > ','.join(placeholders)), db_values) > File "/usr/lib/python2.5/site-packages/django/db/backends/util.py", > line 18, in e

Re: User created in postgresql is not found when Adding Data to the API.

2008-03-27 Thread Chirolo
Hi again. Thank you Thomas for your help. I think that I passed the role and authentication problem, but now I have another problem. Here is what I have done wrong. When I created my database named 'iFriendsDB' in postgresql I created it as super user. and then within the iFriendsDB created the us

Re: User created in postgresql is not found when Adding Data to the API.

2008-03-27 Thread Thomas Guettler
Chirolo schrieb: > Hi again. > I tried what Thomas suggested, but I still get the following error: > NameError: name 'pwdtuple' is not defined > > I am sorry, one line was missing: import os import pwd pwdtuple=pwd.getpwuid(os.getuid()) USER=pwdtuple[0] HOME=pwdtuple[5] -- Thomas Guettler,

Re: User created in postgresql is not found when Adding Data to the API.

2008-03-26 Thread Chirolo
Hi again. I tried what Thomas suggested, but I still get the following error: NameError: name 'pwdtuple' is not defined [EMAIL PROTECTED]:~/django_projects/iFriends/iFriends$ python manage.py shell Traceback (most recent call last): File "manage.py", line 4, in import settings # Assumed to

Re: User created in postgresql is not found when Adding Data to the API.

2008-03-26 Thread Thomas Guettler
Hi, I use the same name for database user and linux user. file pg_hba.conf: (unchanged from SuSE default) {{{ # "local" is for Unix domain socket connections only local all all trust }}} {{{ # in settings.py import os import pwd USER=pwdtuple[0] DATABASE_

User created in postgresql is not found when Adding Data to the API.

2008-03-25 Thread Chirolo
Hello to all. I'm a newbie trying to learn Django. I'm running Django in a local machine with postgresql_psycop2 database in Ubuntu 6.02. So far I have been able to set up Django, Postgresql with no problems. I was able to create a project name iFriends, a model People, and a class Person. I also