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
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
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
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,
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
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_
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
7 matches
Mail list logo