Hi,

There is two common problems that may occur:

1) You don't have read and write permissions for directory where
database file resides.

2) You haven't incorrect or missing path for database file. Even Sqlite
can create database ile itself it can't create path(s) needed.

On Sun, 2011-05-15 at 09:07 -0700, David Biglin wrote:
> Hi,
> I have been playing with Python for the past year now and enjoying it.
> I am trying Django to make a web site for a friend. I am Following the
> Django Tutorial on there web site to get the basic concepts here;
> http://docs.djangoproject.com/en/dev/intro/tutorial01/
> 
> During the set up i am using SQLite3 which comes with python, how ever
> when i try and create the DB tables i get the following errors
> 
> Command to create DBTables :
> 
>     python manage.py syncdb
> 
> 
> 
> The Traceback :
> 
>     Traceback (most recent call last):
>       File "manage.py", line 11, in <module>
>         execute_manager(settings)
>       File "/usr/lib/pymodules/python2.7/django/core/management/
> __init__.py", line 438, in execute_manager
>         utility.execute()
>       File "/usr/lib/pymodules/python2.7/django/core/management/
> __init__.py", line 379, in execute
>         self.fetch_command(subcommand).run_from_argv(self.argv)
>       File "/usr/lib/pymodules/python2.7/django/core/management/
> base.py", line 191, in run_from_argv
>         self.execute(*args, **options.__dict__)
>       File "/usr/lib/pymodules/python2.7/django/core/management/
> base.py", line 220, in execute
>         output = self.handle(*args, **options)
>       File "/usr/lib/pymodules/python2.7/django/core/management/
> base.py", line 351, in handle
>         return self.handle_noargs(**options)
>       File "/usr/lib/pymodules/python2.7/django/core/management/
> commands/syncdb.py", line 56, in handle_noargs
>         cursor = connection.cursor()
>       File "/usr/lib/pymodules/python2.7/django/db/backends/
> __init__.py", line 75, in cursor
>         cursor = self._cursor()
>       File "/usr/lib/pymodules/python2.7/django/db/backends/sqlite3/
> base.py", line 174, in _cursor
>         self.connection = Database.connect(**kwargs)
>     sqlite3.OperationalError: unable to open database file
> 
> 
> 
> 
> Any help would be amazing also any other tutorials anyone could
> recommend for starting python web development would be much
> appreciated!
> Thanks again
> 

-- 

Jani Tiainen

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