Hi,

I am using the Django tutorial (Windows xp, python 2.5.4, django 1.2.3) and
am facing a problem at the point where I have to run syncdb.

python manage.py syncdb

Error message (full error in the end):

*  File
"C:\utils\frameworks\Python254\Lib\site-packages\django\db\backends\sqlite3\base.py",
line 174, in _cursor*
*    self.connection = Database.connect(**kwargs)*
*    sqlite3.OperationalError: unable to open database file*

Steps taken to debug:
1) made sure "name" in the settings file has full path to db file.
2) made sure currently logged in user has full permission to containing
folder and files.

Here is the relevant portion of my setting.py file:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'C:/utils/framworks/dlab2/sqlite3.db',
        '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.
    }
}

your help on this issue would be appreciated.

thanks!
Aj
---------------------------------------------------------------------------------------------------------
full error:
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File
"C:\utils\frameworks\Python254\Lib\site-packages\django\core\management\_
_init__.py", line 438, in execute_manager
    utility.execute()
  File
"C:\utils\frameworks\Python254\Lib\site-packages\django\core\management\_
_init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"C:\utils\frameworks\Python254\Lib\site-packages\django\core\management\b
ase.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"C:\utils\frameworks\Python254\Lib\site-packages\django\core\management\b
ase.py", line 220, in execute
    output = self.handle(*args, **options)
  File
"C:\utils\frameworks\Python254\Lib\site-packages\django\core\management\b
ase.py", line 351, in handle
    return self.handle_noargs(**options)
  File
"C:\utils\frameworks\Python254\Lib\site-packages\django\core\management\c
ommands\syncdb.py", line 52, in handle_noargs
    cursor = connection.cursor()
  File
"C:\utils\frameworks\Python254\Lib\site-packages\django\db\backends\__ini
t__.py", line 75, in cursor
    cursor = self._cursor()
  File
"C:\utils\frameworks\Python254\Lib\site-packages\django\db\backends\sqlit
e3\base.py", line 174, in _cursor
    self.connection = Database.connect(**kwargs)
sqlite3.OperationalError: unable to open database file

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