There were so many posts like this and I have looked at them both in
the graphite forum as well as this.

I see three 'settings.py' files.

usr/lib/pymodules/python2.7/django/conf/project_template/
settings.py:DATABASES = {
/usr/lib/pymodules/python2.6/django/conf/project_template/
settings.py:DATABASES = {
/usr/share/pyshared/django/conf/project_template/settings.py:DATABASES
= {

 I am not using python2.6 because when I type 'python' I get the
following prompt.

Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2

I have updated both the following files. .

/usr/lib/pymodules/python2.7/django/conf/project_template/settings.py
/usr/share/pyshared/django/conf/project_template/settings.py

Both have this updated section. I have tried without 'touching nio.db'
and also by touching it based on a forum suggestion.

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqllite3', # Add
'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': '/user/django//db/nio.db',                      # Or
path to database file if using sqlite3.
        'USER': '',                      # Not used with sqlite3.
        'PASSWORD': '',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for
localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for
default. Not used with sqlite3.

1. The path is absolute
2. Full permissions are given to the parent and child folders
3. Checked Ubuntu's(11.10) access logs to confirm 'root' is the user
trying to run the command.

Apr  5 17:28:09 CHNDLINUX sudo: fssadmin : TTY=pts/2 ; PWD=/home/user/
graphite/graphite-web-0.9.9/webapp/graphite ; USER=root ; COMMAND=/usr/
bin/vi /usr/share/pyshared/django/conf/project_template/settings.py

No respite though. It still shows "self.connection =
Database.connect(**kwargs)"

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-users@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