For your DATABASE_NAME, try using an absolute path without the tilde (~) shortcut, that might solve it: DATABASE_NAME = '/home/ssk/Projects/mysites/mysite/mysite.db'
On 10/21/07, SSK <[EMAIL PROTECTED]> wrote: > > > I'm trying to get started with Django, but I've hit a hurdle with > database. > > I have a very basic configuration: Python 2.5, Django (SVN), built-in > server, SQLite3 db. > > My settings.py has this: > DATABASE_ENGINE = 'sqlite3' > DATABASE_NAME = '~/Projects/mysites/mysite/mysite.db' > > When I run syncdb, I get the following error: > python manage.py syncdb > Traceback (most recent call last): > File "manage.py", line 11, in <module> > execute_manager(settings) > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/core/management/__init__.py", line 275, > in execute_manager > utility.execute() > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/core/management/__init__.py", line 225, > in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/core/management/base.py", line 70, in > run_from_argv > self.execute(*args, **options.__dict__) > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/core/management/base.py", line 84, in > execute > output = self.handle(*args, **options) > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/core/management/base.py", line 166, in > handle > return self.handle_noargs(**options) > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/core/management/commands/syncdb.py", > line 39, in handle_noargs > cursor = connection.cursor() > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/db/backends/__init__.py", line 33, in > cursor > cursor = self._cursor(settings) > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/site-packages/django/db/backends/sqlite3/base.py", line 110, > in _cursor > self.connection = Database.connect(**kwargs) > sqlite3.OperationalError: unable to open database file > > I've searched for it. Other people have had this type of error but I > didn't find anyone who has had this with the built-in server. What > might be the problem? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

